Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Can't install packages

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
vkucera
Posts: 2
Joined: 2018-10-21 10:28

Can't install packages

#1 Post by vkucera »

I've been using debian for a couple of weeks now. Today I ran into a problem, when I try to install a package with apt I always get this message.
For instance installing xscreensaver

Code: Select all

W: APT had planned for dpkg to do more than it reported back (0 vs 14).
   Affected packages: install-info:amd64 xscreensaver-data:amd64 xscreensaver:amd64
(aptitude or synaptic also don't work)

cronoik
Posts: 310
Joined: 2015-05-20 21:17

Re: Can't install packages

#2 Post by cronoik »

Hi,
please give us always a complete terminal output (command + output). Which version of debian do you use? PLease show us the output of:

Code: Select all

apt-cache policy
It could be something like this [1] but we need some more information :)

[1] http://forums.debian.net/viewtopic.php?f=10&t=138230
Have a nice day!

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Can't install packages

#3 Post by debiman »

as it stands this is just a warning.
something actually not working as it should?
please provide the output requested.

vkucera
Posts: 2
Joined: 2018-10-21 10:28

Re: Can't install packages

#4 Post by vkucera »

I use Debian 9.50
Command:

Code: Select all

$ sudo apt install xscreensaver
Output

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  xscreensaver-data
Suggested packages:
  xfishtank xdaliclock xscreensaver-data-extra xscreensaver-gl
  xscreensaver-gl-extra fortune qcam | streamer gdm3 | kdm-gdmcompat
Recommended packages:
  perl5
The following NEW packages will be installed:
  xscreensaver xscreensaver-data
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
1 not fully installed or removed.
Need to get 0 B/887 kB of archives.
After this operation, 3,942 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
W: APT had planned for dpkg to do more than it reported back (0 vs 14).
   Affected packages: install-info:amd64 xscreensaver-data:amd64 xscreensaver:amd64

Code: Select all

apt-cache policy
Output:

Code: Select all

Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://repository.spotify.com stable/non-free amd64 Packages
     release v=0.4,o=Spotify LTD,a=stable,n=stable,l=Spotify Public Repository,c=non-free,b=amd64
     origin repository.spotify.com
 500 http://httpredir.debian.org/debian jessie/non-free amd64 Packages
     release v=8.11,o=Debian,a=oldstable,n=jessie,l=Debian,c=non-free,b=amd64
     origin httpredir.debian.org
 500 http://httpredir.debian.org/debian jessie/contrib amd64 Packages
     release v=8.11,o=Debian,a=oldstable,n=jessie,l=Debian,c=contrib,b=amd64
     origin httpredir.debian.org
 500 http://httpredir.debian.org/debian jessie/main amd64 Packages
     release v=8.11,o=Debian,a=oldstable,n=jessie,l=Debian,c=main,b=amd64
     origin httpredir.debian.org
 100 http://httpredir.debian.org/debian stretch-backports/non-free amd64 Packages
     release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=non-free,b=amd64
     origin httpredir.debian.org
 100 http://httpredir.debian.org/debian stretch-backports/contrib amd64 Packages
     release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=contrib,b=amd64
     origin httpredir.debian.org
 100 http://httpredir.debian.org/debian stretch-backports/main amd64 Packages
     release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=main,b=amd64
     origin httpredir.debian.org
 500 http://ftp.de.debian.org/debian stretch-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
     origin ftp.de.debian.org
 500 http://security.debian.org/debian-security stretch/updates/non-free amd64 Packages
     release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=non-free,b=amd64
     origin security.debian.org
 500 http://security.debian.org/debian-security stretch/updates/contrib amd64 Packages
     release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=contrib,b=amd64
     origin security.debian.org
 500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
     release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
 500 http://ftp.de.debian.org/debian stretch/non-free amd64 Packages
     release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=non-free,b=amd64
     origin ftp.de.debian.org
 500 http://ftp.de.debian.org/debian stretch/contrib amd64 Packages
     release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=contrib,b=amd64
     origin ftp.de.debian.org
 500 http://ftp.de.debian.org/debian stretch/main amd64 Packages
     release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
     origin ftp.de.debian.org
Pinned packages:

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Can't install packages

#5 Post by bw123 »

duck
resigned by AI ChatGPT

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Can't install packages

#6 Post by GarryRicketson »

Image
"Quack, quack "

Please read: https://wiki.debian.org/DontBreakDebian

With the mixed combination of Debian Jessie, and current Debian Stretch, things can not work as expected. Since you have only been using Debian a couple of weeks, my suggestion is to make copies / back up any data that you want to save, and then read some more documentation on Debian, including the above link. After you do all that, re-install the current stable version of Debian, Stretch 9.5, and start fresh with a clean system. Some people with a lot of experience can and do manage to keep a mixed up system (FrankenDebian), but most Debian users with even more experience do not do this, it gets complicated.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Can't install packages

#7 Post by stevepusser »

So I'm waiting for a jpg of FrankenDuckian now?

I'm throwing this in the bin of 99% of these types of problems being due to unsane sources, too.
MX Linux packager and developer

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1388
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 65 times

Re: Can't install packages

#8 Post by None1975 »

You have gigantic frankendebian :D
Image
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Post Reply