Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KA Lite fails to install on newly released Ubuntu 24.04 #3731

Open
holta opened this issue Apr 26, 2024 · 5 comments
Open

KA Lite fails to install on newly released Ubuntu 24.04 #3731

holta opened this issue Apr 26, 2024 · 5 comments
Milestone

Comments

@holta
Copy link
Member

holta commented Apr 26, 2024

Error is:

TASK [kalite : Fix KA Lite bug in regex parsing ifconfig output (ifcfg/parser.py) for @m-anish's network nam
es that contain dashes] ***
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Path /usr/local/kalite/venv/lib/python2.7/site-pac
kages/kalite/packages/dist/ifcfg/parser.py does not exist !", "rc": 257}

cc: @jvonau

Related:

@holta holta added the bug label Apr 26, 2024
@holta holta added this to the 8.2 milestone Apr 26, 2024
@jvonau
Copy link
Contributor

jvonau commented Apr 29, 2024

Dependencies changed within sudo ./scripts/install_python2_kalite-venv_u2404.sh

The following package was automatically installed and is no longer required:
  python3-setuptools-whl
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  python3-venv python3.12-venv
The following packages will be DOWNGRADED:
  python3-pip-whl
0 upgraded, 0 newly installed, 1 downgraded, 2 to remove and 1 not upgraded.
Need to get 1679 kB of archives.
After this operation, 59.4 kB disk space will be freed.
Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 python3-pip-whl all 22.0.2+dfsg-1 [1679 kB]
Fetched 1679 kB in 1s (1592 kB/s)         
(Reading database ... 70856 files and directories currently installed.)
Removing python3-venv (3.12.3-0ubuntu1) ...
Removing python3.12-venv (3.12.3-1) ...
dpkg: warning: downgrading python3-pip-whl from 24.0+dfsg-1ubuntu1 to 22.0.2+dfs
g-1
(Reading database ... 70849 files and directories currently installed.)
Preparing to unpack .../python3-pip-whl_22.0.2+dfsg-1_all.deb ...
Unpacking python3-pip-whl (22.0.2+dfsg-1) over (24.0+dfsg-1ubuntu1) ...
Setting up python3-pip-whl (22.0.2+dfsg-1) ...
Scanning processes...                                                           
Scanning linux images...                                                        

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
python3-pip-whl set on hold.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3 : Conflicts: python3-distutils but 3.10.8-1~22.04 is to be installed
 python3-distutils : Depends: python3:any (< 3.12)
                     Depends: python3-lib2to3 (= 3.10.8-1~22.04) but 3.12.3-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
python3-pip set on hold.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-virtualenv : Depends: python3-pip (>= 20.1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
python3-virtualenv set on hold.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 virtualenv : Depends: python3-virtualenv but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
virtualenv set on hold.
./install_python2_kalite-venv_u2404.sh: line 31: virtualenv: command not found
./install_python2_kalite-venv_u2404.sh: line 33: cd: /usr/local/kalite/venv: No such file or directory
./install_python2_kalite-venv_u2404.sh: line 34: bin/activate: No such file or directory
./install_python2_kalite-venv_u2404.sh: line 35: bin/pip: No such file or directory

@jvonau
Copy link
Contributor

jvonau commented Apr 30, 2024

Downgrading is no longer possible. No magic potion available. Move to unpacking a virtual environment created on U22.04 but python2 would still have to be installed but the script would be much less invasive.

@jvonau
Copy link
Contributor

jvonau commented Apr 30, 2024

Not a bug, just evolution with the newest OS.

@holta holta removed the bug label Apr 30, 2024
@holta
Copy link
Member Author

holta commented Apr 30, 2024

Disappointing but good to know!

@holta
Copy link
Member Author

holta commented May 1, 2024

Patch has been applied, so that mainline IIAB installs on Ubuntu 24.04 can now proceed:

I'm tempted to leave this ticket open for a few weeks, just in case others have other opinions on how to proceed here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants