CAnnot install "python" on Sid, so cannot install Virtualbox 6.1
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
CAnnot install "python" on Sid, so cannot install Virtualbox 6.1
I have been waiting around hoping this would be resolved as part of the usual bug fixing but it seems it may just be me seeing this.
After a dist-upgrade the other day when I neglected to pay attention Virtualbox was removed from my system. On trying to reinstall it I saw the following:
Code:
python : PreDepends: python-minimal (= 2.7.17-2) but it is not going to be installed
Depends: libpython-stdlib (= 2.7.17-2) but it is not going to be installed
Depends: python2 (= 2.7.17-2) but 2.7.18-2 is to be installed
E: Unable to correct problems, you have held broken packages.
I also found that a script I had for my Blinkstick didn't work as it relied upon the python executable but a quick simlink called python pointing to python2 solved that.
Has anyone else seen somethihng like this? When I google I get no results.
If it doesn't get resolved soon I might resort to trying to download and edit the Virtualbox deb file manually but that's always been a pain to do.
Distribution: Ubuntu based stuff for the most part
Posts: 1,174
Rep:
What if you install python3?
Python2 is end of life as the beginning of the year and apps that use it need to switch to python3.
Once you install python3, make sure you are grabbing the latest VB version https://download.virtualbox.org/virt...eoan_amd64.deb
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Quote:
Originally Posted by uteck
What if you install python3?
Python2 is end of life as the beginning of the year and apps that use it need to switch to python3.
Once you install python3, make sure you are grabbing the latest VB version https://download.virtualbox.org/virt...eoan_amd64.deb
Thanks. I do have python 3 installed as well -- I get this error when trying to install the package python anyway. I did update my sources.list to point to the Virtualbox Eoan repository jut in case but still the same error.
I'm still getting this issue and I don't understand as my Python version is higher than the one listed so I was expecting a fix pretty quickly.
You miss the = in the line for the packages needed, having a higher version is bad in that case. It needs the exact version it tells you to be able to install. You have two choices try to build the package with the older versions of the library or get the older versions needed and install them with dpkg with the .deb files you download. Or third option now I think about it wait until the package is rebuilt with the new versions of the support libraries. Then it should install without problems.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Quote:
Originally Posted by HappyTux
You miss the = in the line for the packages needed, having a higher version is bad in that case. It needs the exact version it tells you to be able to install. You have two choices try to build the package with the older versions of the library or get the older versions needed and install them with dpkg with the .deb files you download. Or third option now I think about it wait until the package is rebuilt with the new versions of the support libraries. Then it should install without problems.
I had worked out that was the problem but wondered why none of the Debian developers had so wondered whether there was something I was missing.
In the past (for Google Earth, I think) I have modified .deb files to deal with dependency links that are wrong but I don't really want to go messing with "python" in case I mess things up later on once it's fixed.
Luckily I don't need Virtualbox right now but it's been a long time without a fix.
I had worked out that was the problem but wondered why none of the Debian developers had so wondered whether there was something I was missing.
In the past (for Google Earth, I think) I have modified .deb files to deal with dependency links that are wrong but I don't really want to go messing with "python" in case I mess things up later on once it's fixed.
Luckily I don't need Virtualbox right now but it's been a long time without a fix.
Probably best python is an important package and not worth messing with. There used to be a site at packages.debian.org that had every package ever built for Debian. Now I check it is still there if needed in the future go there and get what is required. The package you require is sitting there right now.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Quote:
Originally Posted by HappyTux
Probably best python is an important package and not worth messing with. There used to be a site at packages.debian.org that had every package ever built for Debian. Now I check it is still there if needed in the future go there and get what is required. The package you require is sitting there right now.
Yeah, the problem is if I try to install that what will it uninstall? Weird that the version of python I have isn't listed.
I have no idea what it will do when installed the only way to find out is to download the packages and put them at the the end of a dpkg -i install line and see what it tells you it will do, you always get option to say no if not liking results. What I find really weird is the = only for the version number, usually it is a >= to version needed when installing.
Edit: And unless you have deleted your cached packages you always have the versions installed or that have been installed on your machine in there. These can be installed again with the dpkg -i command to go back to a previous state.
What I find really weird is the = only for the version number, usually it is a >= to version needed when installing.
I'm fairly sure I'd seen mention(s) of 2.7.17 being the last release of Python 2 - that it was EOL and no further development work done after Jan 2020, but then in April 2020, 2.7.18 came out as the last one for real this time.
So it could have been the package maintainer thought there was no point putting >= since they didn't expect another release to happen and/or weren't willing to commit to maintaining it against any future releases.
I'm fairly sure I'd seen mention(s) of 2.7.17 being the last release of Python 2 - that it was EOL and no further development work done after Jan 2020, but then in April 2020, 2.7.18 came out as the last one for real this time.
So it could have been the package maintainer thought there was no point putting >= since they didn't expect another release to happen and/or weren't willing to commit to maintaining it against any future releases.
Could be, but that leaves another mystery, why is that .18 package not listed on the Debian site for every package that has ever been released by them.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Quote:
Originally Posted by HappyTux
Could be, but that leaves another mystery, why is that .18 package not listed on the Debian site for every package that has ever been released by them.
It is very odd, before my previous post I checked "apt policy python2" to make sure I was using the Debian repositories rather than deb-multimedia or something and got:
So, potentially I could uninstall python2 and install python and get things working, however, removing python2 results in the following:
Code:
The following packages will be REMOVED:
python-all python-all-dev python-cffi-backend python-crypto python-dbus python-decorator python-enum34 python-gi python-ipython-genutils python-keyrings.alt python-numpy python-olefile
python-pil python-pkg-resources python-prompt-toolkit python-pygments python-setuptools python-six python-traitlets python-wcwidth python-wheel python-xdg python2 python2-dev
0 upgraded, 0 newly installed, 24 to remove and 0 not upgraded.
After this operation, 24.2 MB disk space will be freed.
I'm a little worried installing python might not replace what uninstalling python2 removes.
I get the feeling that this will be resolved eventually but I probably installed python2 due to some dependency and am, one of only a few people with it installed, with most having python installed and being on version 2 anyhow.
It is very odd, before my previous post I checked "apt policy python2" to make sure I was using the Debian repositories rather than deb-multimedia or something and got:
So, potentially I could uninstall python2 and install python and get things working, however, removing python2 results in the following:
Code:
The following packages will be REMOVED:
python-all python-all-dev python-cffi-backend python-crypto python-dbus python-decorator python-enum34 python-gi python-ipython-genutils python-keyrings.alt python-numpy python-olefile
python-pil python-pkg-resources python-prompt-toolkit python-pygments python-setuptools python-six python-traitlets python-wcwidth python-wheel python-xdg python2 python2-dev
0 upgraded, 0 newly installed, 24 to remove and 0 not upgraded.
After this operation, 24.2 MB disk space will be freed.
I'm a little worried installing python might not replace what uninstalling python2 removes.
I get the feeling that this will be resolved eventually but I probably installed python2 due to some dependency and am, one of only a few people with it installed, with most having python installed and being on version 2 anyhow.
Or you could try apt -s install python and see if they will co-exist. If nothing crazy shows up in the output remove the -s to install.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.