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

Author Topic: [EN] /var/lib/dpkg/status include missing packages  (Read 860 times)

Offline Mte90

  • User
  • Posts: 186
  • KDE & Debian lover
    • http://www.mte90.net
[EN] /var/lib/dpkg/status include missing packages
« on: 2022/03/08, 18:04:29 »
I am trying to clean up but seems that this files include packages that are not available in the debian repositories (sid) that I am using, like packages not available anymore on sid.

Do you have some suggestions to regenerate this file?

Offline Geier0815

  • User
  • Posts: 568
Re: /var/lib/dpkg/status include missing packages
« Reply #1 on: 2022/03/08, 22:12:27 »
Do you want to get rid of these packages where you don't have a source for? Then install apt-show-versions and give
Code: [Select]
apt-show-versions | grep "No available" | awk '{print $1}' > list-to-delete.txt and then
Code: [Select]
apt purge `cat list-to-delete.txt`This will delete all packages which are no longer found in your repos. Keep an eye on the list before purge the packages, maybe there are packaes which you want to keep. If so, delete them out of the list.
Wenn Windows die Lösung ist...
kann ich dann bitte das Problem zurück haben?

Offline Mte90

  • User
  • Posts: 186
  • KDE & Debian lover
    • http://www.mte90.net
Re: /var/lib/dpkg/status include missing packages
« Reply #2 on: 2022/03/09, 12:16:07 »
That command kind of works, the issue is that list also package that I installed manually that doesn't have a repository but I can do a manually check for that.

Just to let you know seems that I have over 1000 packages that can be removed like qt4, gnash and older kde packages...