Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  du wants to remove some packages  (Read 8281 times)

Xaver

  • Guest
Re: du wants to remove some packages
« Reply #15 on: 2020/08/06, 14:14:04 »
The Python2 removal (transition python2-rm) affects all packages, which depend on python2.
In my case those are cherrytree dispcalgui displaycal fskbsetting gimp-plugin-registry obkey obmenu  wicd-daemon wicd-gtk

Will there be a solution? Only python3-wicd can be found in experimental.
So I shall wait for that.
To the other programs I have to say good bye.
Sad: In sid there will be no configuration tools for Openbox anymore.
« Last Edit: 2020/08/06, 14:17:18 by Xaver »

Offline sunrat

  • User
  • Posts: 406
Re: du wants to remove some packages
« Reply #16 on: 2020/08/06, 15:13:38 »
Looks like speedtest-cli is anothervictim:
Code: [Select]
$ speedtest-cli
/usr/bin/env: ‘python’: No such file or directory

Oops, false alarm. For some long forgotten reason I had the script in ~/bin . Removing that reverted to the sid version which works fine.
« Last Edit: 2020/08/06, 15:20:18 by sunrat »

Offline mdmarmer

  • User
  • Posts: 55
Re: du wants to remove some packages
« Reply #17 on: 2020/08/06, 17:37:02 »
My system wants to remove more packages on d-u.  I'm holding off for now:

apt full-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libexpat1-dev libpython2-dev libpython2.7-dev libx264-155 python-cffi-backend python-httplib2
  python2-dev python2.7-dev
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  cfv libpython-dev libpython-stdlib ntfs-config python python-cryptography python-debianbts
  python-defusedxml python-dev python-glade2 python-gtk2 python-imaging python-ipaddress python-minimal
  python-notify python-openssl python-pexpect python-ptyprocess python-pysimplesoap python-serial
  python-soappy python-support python-talloc python-wstools pywwetha pyygle sidu-base sidu-disk-center
  sidu-manual sidu-manual-data
The following packages will be upgraded:
  dh-python libpython2-dev libpython2-stdlib python2 python2-dev python2-minimal
6 upgraded, 0 newly installed, 30 to remove and 0 not upgraded.
Need to get 193 kB of archives.
After this operation, 30.3 MB disk space will be freed.
Do you want to continue? [Y/n]


Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.345
    • Land of the Buckeye
Re: du wants to remove some packages
« Reply #18 on: 2020/08/06, 18:30:38 »
@mdmarmer, I checked your list of removals on my favorite KDE/plasma system:

Code: [Select]
$ sudo apt policy cfv libpython-dev libpython-stdlib ntfs-config python python-cryptography python-debianbts
cfv:
  Installed: (none)
  Candidate: 1.18.3-2.1
  Version table:
     1.18.3-2.1 500
        500 http://httpredir.debian.org/debian unstable/main amd64 Packages
libpython-dev:
  Installed: (none)
  Candidate: 2.7.17-2
  Version table:
     2.7.17-2 500
        500 http://httpredir.debian.org/debian unstable/main amd64 Packages
libpython-stdlib:
  Installed: (none)
  Candidate: 2.7.17-2
  Version table:
     2.7.17-2 500
        500 http://httpredir.debian.org/debian unstable/main amd64 Packages
ntfs-config:
  Installed: (none)
  Candidate: (none)
  Version table:
     1.0.1-11 -1
        100 /var/lib/dpkg/status
python:
  Installed: (none)
  Candidate: 2.7.17-2
  Version table:
     2.7.17-2 500
        500 http://httpredir.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
N: Unable to locate package python-cryptography
N: Unable to locate package python-debianbts
don@dibl-patience:~$

I don't think you need any of them -- as you can see, some of them are no longer in the repos.
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline der_bud

  • User
  • Posts: 1.072
  • member
Re: du wants to remove some packages
« Reply #19 on: 2020/08/07, 12:05:10 »
@xaver, I always thought openbox configuration is done by obconf :), at least in my LXDE testinstall obconf and lxapearance-obconf are still working and don't get removed.
Du lachst? Wieso lachst du? Das ist doch oft so, Leute lachen erst und dann sind sie tot.

Xaver

  • Guest
Re: du wants to remove some packages
« Reply #20 on: 2020/08/07, 21:32:33 »
@ der_Bud

Yes, you are right. Obconf and lxappearance-obconf do not have any python dependencies.
So they will survive this transition.

Offline tranquil

  • User
  • Posts: 111
Re: du wants to remove some packages
« Reply #21 on: 2020/08/12, 21:12:10 »

aptitude can be useful in these situations.
why/why-not: Explains the reason that a particular package should or cannot be installed on the system

Code: [Select]
aptitude why-not libgc1c2
i   inkscape Depends   libgc1 (>= 1:7.2d)
i A libgc1   Conflicts libgc1c2

Too bad apt doesn't have a similar feature.
Dual-booting Debian Stable and Unstable with Openbox window manager and Tint2 panel.

Xaver

  • Guest
Re: du wants to remove some packages
« Reply #22 on: 2020/08/13, 22:00:47 »

Concerning the python2-rm transition I have just realized, that for me the smartest thing to do simply is
Code: [Select]
# apt-mark hold python

Then the python2 stuff will not be removed. It should not cause any problems, because python (2.7.17-2) and python3 can coexist.
Packages that depend on python2 will continue to work properly. By and by these packages will hopefully  be upgraded to python3.

But watch the kept back list and the removal list of full-upgrade very carefully, as long as you keep python on hold.

hightime

  • Guest
Re: du wants to remove some packages
« Reply #23 on: 2020/08/25, 00:06:26 »
I'm puzzled about one thing. In the list of packages to be removed it lists getmail which I use to retrieve my mail. Getmail is a python 2 program, but 'apt-cache policy' shows that python2 is only changing from 2.7.17 to 2.7.18 which shouldn't break anything.
What is it that makes it want to remove getmail? I did some googling but didn't come up with anything.

Offline sunrat

  • User
  • Posts: 406
Re: du wants to remove some packages
« Reply #24 on: 2020/08/25, 00:18:16 »
I let python 2 go and found a couple of python scripts in ~/bin/ didn't work:
Code: [Select]
/usr/bin/env: ‘python’: No such file or directoryas above with speedtest-cli. Had the same issue with youtube-dl which I had in there (it often needs updating when YT changes their API and I'm unfortunate to want to use it before the unstable package is updated). Simple solution:
Code: [Select]
ln -s /usr/bin/python3 /usr/bin/pythonYMMV and definitely not if you are holding python 2.

hightime

  • Guest
Re: du wants to remove some packages
« Reply #25 on: 2020/08/25, 04:01:27 »
I went ahead and did a full-upgrade. It removes python leaving only python2.
The problem with getmail is that in the first line it says
Code: [Select]
#!/usr/bin/pythonSo apt tries to install python as a dependency which fails of course.
I downloaded the getmail tarball and installed it manually and it works fine since the manual install process correctly sets the first line to python2, not python.
It seems that there's a packaging problem with the getmail package in debian sid, nothing more.

Offline sunrat

  • User
  • Posts: 406
Re: du wants to remove some packages
« Reply #26 on: 2020/08/25, 06:41:00 »
@hightime - you may have been able to fix it by symlinking python2 to python similar to my post above.