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

 

 

 

packages kept back

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
onoff
Posts: 3
Joined: 2015-02-08 09:30

packages kept back

#1 Post by onoff »

I get that certain packages can't be installed:

Code: Select all

    $ sudo apt-get upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    The following packages have been kept back:
      libgd3
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
After searching the web and trying several things I still can't remove this issue. I've tried to use `apt-get install -f`, checked for broken packages in synaptic (but there are none) and tried the distro upgrade. The issue is because of the unmet dependency of the following package:

Code: Select all

    $ sudo apt-get install -f libgd3
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     libgd3 : Depends: libfontconfig1 (>= 2.11.94) but 2.11.0-6.7+b1 is to be installed
    E: Unable to correct problems, you have held broken packages.
What I then tried is to run a apt-cache policy with the following output

Code: Select all

 sudo apt-cache policy libfontconfig1
    libfontconfig1:
      Installed: 2.11.0-6.7+b1
      Candidate: 2.11.0-6.7+b1
      Version table:
     *** 2.11.0-6.7+b1 500
            500 http://http.us.debian.org/debian stable/main amd64 Packages
            100 /var/lib/dpkg/status
         2.9.0-7.1+deb7u1 500
            500 http://security.debian.org wheezy/updates/main amd64 Packages
         2.9.0-7.1 500
            500 http://debian.ethz.ch/debian wheezy/main amd64 Packages
how can I resolve this issue?

onoff
Posts: 3
Joined: 2015-02-08 09:30

Re: packages kept back

#2 Post by onoff »

thanks for your help. To be honest with you, I don't know :) Here is my source.list:

Code: Select all

cat /etc/apt/sources.list
# 

# deb cdrom:[Debian GNU/Linux 7 _Wheezy_ - Official Snapshot amd64 LIVE/INSTALL Binary 20140723-17:40]/ wheezy main

# deb cdrom:[Debian GNU/Linux 7 _Wheezy_ - Official Snapshot amd64 LIVE/INSTALL Binary 20140723-17:40]/ wheezy main

deb http://debian.ethz.ch/debian/ wheezy main
deb-src http://debian.ethz.ch/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# wheezy-updates, previously known as 'volatile'
deb http://debian.ethz.ch/debian/ wheezy-updates main
deb-src http://debian.ethz.ch/debian/ wheezy-updates main

# experimental stuff

deb http://ftp.debian.org/debian experimental main

deb http://http.us.debian.org/debian stable main contrib non-free


deb http://www.apache.org/dist/cassandra/debian 30x main
deb-src http://www.apache.org/dist/cassandra/debian 30x main

deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
# deb-src [arch=amd64] https://download.docker.com/linux/debian stretch stable
# deb-src [arch=amd64] https://download.docker.com/linux/debian stretch stable
I've just wanted to run an update / upgrade and got that message

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: packages kept back

#3 Post by 4D696B65 »

Mixing wheezy,jessie, and stretch?

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

Re: packages kept back

#4 Post by GarryRicketson »


User avatar
alan stone
Posts: 269
Joined: 2011-10-22 14:08
Location: In my body.

Re: packages kept back

#5 Post by alan stone »

4D696B65 wrote:Mixing wheezy,jessie, and stretch?
onoff wrote:how can I resolve this issue?
Option 1.

Option 2: Please feel free to try to resolve the issues using this manual instead Debian's and/or this picture as wallpaper.
EDIT: And use this dedicated forum.

User avatar
sunrat
Administrator
Administrator
Posts: 6457
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 472 times

Re: packages kept back

#6 Post by sunrat »

Another case for Repo mix-and-match hit parade

http://forums.debian.net/viewtopic.php?f=20&t=114130
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

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

Re: packages kept back

#7 Post by stevepusser »

onoff wrote: how can I resolve this issue?
This.
MX Linux packager and developer

User avatar
sunrat
Administrator
Administrator
Posts: 6457
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 472 times

Re: packages kept back

#8 Post by sunrat »

stevepusser wrote:
onoff wrote: how can I resolve this issue?
This.
Translation - reinstall from scratch and don't mix repos.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply