LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-29-2020, 07:40 PM   #1
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
Old 08-29-2020, 09:38 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,174

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
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
 
Old 08-30-2020, 10:47 AM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by uteck View Post
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.
 
Old 08-31-2020, 06:00 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
Old 08-31-2020, 11:49 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by 273 View Post
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.
 
Old 09-01-2020, 09:48 AM   #6
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,174

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Found this link discussing Python2 errors in Ubuntu:
https://askubuntu.com/questions/1104...3-is-installed

Looks like python2.7 can be installed with "apt install python2.7" But I can't test that at work.
 
Old 09-01-2020, 02:10 PM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by HappyTux View Post
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.

Last edited by 273; 09-01-2020 at 02:16 PM.
 
Old 09-01-2020, 03:56 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by 273 View Post
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.

https://packages.debian.org/search?s...python-minimal
 
Old 09-02-2020, 08:56 AM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by HappyTux View Post
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.

https://packages.debian.org/search?s...python-minimal
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.
 
Old 09-02-2020, 09:32 AM   #10
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554
Quote:
Originally Posted by 273 View Post
Yeah, the problem is if I try to install that what will it uninstall?
Shouldn't your package manager tell you that up front and/or have a dry-run option that simulates without actually doing anything?

 
Old 09-02-2020, 09:34 AM   #11
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by 273 View Post
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.

Last edited by HappyTux; 09-02-2020 at 09:37 AM.
 
Old 09-02-2020, 09:53 AM   #12
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554
Quote:
Originally Posted by HappyTux View Post
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.


Anyway, seems like this should be an issue raised in the VirtualBox bug tracker - there do not appear to be any existing tickets mentioning python 2.7.18

 
Old 09-02-2020, 10:31 AM   #13
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by boughtonp View Post
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.


Anyway, seems like this should be an issue raised in the VirtualBox bug tracker - there do not appear to be any existing tickets mentioning python 2.7.18


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.
 
Old 09-05-2020, 11:46 AM   #14
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by HappyTux View Post
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:
Code:
python2:
  Installed: 2.7.18-2
  Candidate: 2.7.18-2
  Version table:
 *** 2.7.18-2 500
        500 http://deb.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status
What I did not do was "apt policy python" because that gets:
Code:
python:
  Installed: (none)
  Candidate: 2.7.17-2
  Version table:
     2.7.17-2 500
        500 http://deb.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status
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.
 
Old 09-05-2020, 04:05 PM   #15
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by 273 View Post
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:
Code:
python2:
  Installed: 2.7.18-2
  Candidate: 2.7.18-2
  Version table:
 *** 2.7.18-2 500
        500 http://deb.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status
What I did not do was "apt policy python" because that gets:
Code:
python:
  Installed: (none)
  Candidate: 2.7.17-2
  Version table:
     2.7.17-2 500
        500 http://deb.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] virtualbox is installed along with virtualbox-dkms and virtualbox-ext-pack and linux-headers-generic, but error for no /dev/vboxdrv Astral Axiom Linux - Software 2 03-04-2019 08:09 PM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
will the ltmodem drivers work in debian sid (knoppix sid) maximalred Debian 5 05-29-2009 10:44 AM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM
What our the differences between debian (Sid) and knoppix 3.4 (Sid)? maximalred Debian 6 06-06-2004 08:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration