LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 02-23-2011, 07:29 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,608

Rep: Reputation: 45
packages have been kept back


Hello

I try to update my squeeze using apt-get upgrade and get the following problem:
Code:
root@squeeze:~# apt-get update
Hit http://ftp.ch.debian.org squeeze Release.gpg
Ign http://ftp.ch.debian.org/debian/ squeeze/main Translation-en
Ign http://ftp.ch.debian.org/debian/ squeeze/main Translation-en_US
Get:1 http://ftp.ch.debian.org squeeze-updates Release.gpg [835 B]
Ign http://ftp.ch.debian.org/debian/ squeeze-updates/main Translation-en
Ign http://ftp.ch.debian.org/debian/ squeeze-updates/main Translation-en_US
Hit http://ftp.ch.debian.org squeeze Release
Get:2 http://ftp.ch.debian.org squeeze-updates Release [38.3 kB]
Hit http://ftp.ch.debian.org squeeze/main Sources
Hit http://ftp.ch.debian.org squeeze/main i386 Packages
Hit http://ftp.ch.debian.org squeeze-updates/main Sources
Hit http://ftp.ch.debian.org squeeze-updates/main i386 Packages
Hit http://security.debian.org squeeze/updates Release.gpg
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en_US
Hit http://security.debian.org squeeze/updates Release
Hit http://security.debian.org squeeze/updates/main Sources
Hit http://security.debian.org squeeze/updates/main i386 Packages
Get:3 http://www.debian-multimedia.org squeeze Release.gpg [198 B]
Ign http://www.debian-multimedia.org/ squeeze/main Translation-en
Ign http://www.debian-multimedia.org/ squeeze/main Translation-en_US
Ign http://www.debian-multimedia.org/ squeeze/non-free Translation-en
Ign http://www.debian-multimedia.org/ squeeze/non-free Translation-en_US
Get:4 http://www.debian-multimedia.org squeeze Release [22.2 kB]
Hit http://www.debian-multimedia.org squeeze/main i386 Packages/DiffIndex
Hit http://www.debian-multimedia.org squeeze/non-free i386 Packages/DiffIndex
Fetched 61.6 kB in 17s (3,445 B/s)
Reading package lists... Done
root@squeeze:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  libavcodec52 libavformat52 libpostproc51 libswscale0
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
my /etc/apt/sources.list:
Code:
root@squeeze:~# cat /etc/apt/sources.list

#deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 NETINST Binary-1 20110205-14:34]/ squeeze main

deb http://ftp.ch.debian.org/debian/ squeeze main
deb-src http://ftp.ch.debian.org/debian/ squeeze main

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

deb http://ftp.ch.debian.org/debian/ squeeze-updates main
deb-src http://ftp.ch.debian.org/debian/ squeeze-updates main

deb http://www.debian-multimedia.org squeeze main non-free
 
Old 02-23-2011, 07:36 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
did you try doing an apt-get dist-upgrade? Can you post the output of apt-cache policy <packagename> for each and dpkg --get-selections |grep -i hold?

What I'm trying to get is a better error message as to why they have been kept back.
 
1 members found this post helpful.
Old 02-23-2011, 07:43 PM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,608

Original Poster
Rep: Reputation: 45
Thx a lot, using apt-get dist-upgrade solved this problem:
Code:
root@squeeze:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  libavcore0 libavutil50 libfaac0 libmp3lame0 librtmp0 libva-x11-1 libva1
  libx264-112 libxvidcore4
The following packages will be upgraded:
  libavcodec52 libavformat52 libpostproc51 libswscale0
4 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,309 kB of archives.
After this operation, 4,014 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://www.debian-multimedia.org/ squeeze/main libavutil50 i386 5:0.6.1+svn20101128-0.2 [85.2 kB]
Get:2 http://ftp.ch.debian.org/debian/ squeeze/main librtmp0 i386 2.3-2 [52.1 kB]
Get:3 http://www.debian-multimedia.org/ squeeze/main libavcore0 i386 5:0.6.1+svn20101128-0.2 [32.6 kB]
Get:4 http://www.debian-multimedia.org/ squeeze/main libavformat52 i386 5:0.6.1+svn20101128-0.2 [857 kB]
Get:5 http://www.debian-multimedia.org/ squeeze/main libfaac0 i386 1.28-0.3 [41.0 kB]
Get:6 http://www.debian-multimedia.org/ squeeze/main libmp3lame0 i386 3.98.4-0.0 [251 kB]
Get:7 http://www.debian-multimedia.org/ squeeze/main libva-x11-1 i386 1.0.7-0.0 [14.8 kB]
Get:8 http://www.debian-multimedia.org/ squeeze/main libva1 i386 1.0.7-0.0 [34.9 kB]
Get:9 http://www.debian-multimedia.org/ squeeze/main libx264-112 i386 1:0.svn20110115-0.0 [507 kB]
Get:10 http://www.debian-multimedia.org/ squeeze/main libxvidcore4 i386 2:1.2.2-0.1 [248 kB]
Get:11 http://www.debian-multimedia.org/ squeeze/main libavcodec52 i386 5:0.6.1+svn20101128-0.2 [5,001 kB]
Get:12 http://www.debian-multimedia.org/ squeeze/main libpostproc51 i386 5:0.6.1+svn20101128-0.2 [41.5 kB]
Get:13 http://www.debian-multimedia.org/ squeeze/main libswscale0 i386 5:0.6.1+svn20101128-0.2 [142 kB]
Fetched 7,309 kB in 43s (169 kB/s)
Reading changelogs... Done
Selecting previously deselected package libavutil50.
(Reading database ... 118193 files and directories currently installed.)
Unpacking libavutil50 (from .../libavutil50_5%3a0.6.1+svn20101128-0.2_i386.deb) ...
Selecting previously deselected package libavcore0.
Unpacking libavcore0 (from .../libavcore0_5%3a0.6.1+svn20101128-0.2_i386.deb) ...
Selecting previously deselected package librtmp0.
Unpacking librtmp0 (from .../librtmp0_2.3-2_i386.deb) ...
Preparing to replace libavformat52 4:0.5.2-6 (using .../libavformat52_5%3a0.6.1+svn20101128-0.2_i386.deb) ...
Unpacking replacement libavformat52 ...
Selecting previously deselected package libfaac0.
Unpacking libfaac0 (from .../libfaac0_1.28-0.3_i386.deb) ...
Selecting previously deselected package libmp3lame0.
Unpacking libmp3lame0 (from .../libmp3lame0_3.98.4-0.0_i386.deb) ...
Selecting previously deselected package libva-x11-1.
Unpacking libva-x11-1 (from .../libva-x11-1_1.0.7-0.0_i386.deb) ...
Selecting previously deselected package libva1.
Unpacking libva1 (from .../libva1_1.0.7-0.0_i386.deb) ...
Selecting previously deselected package libx264-112.
Unpacking libx264-112 (from .../libx264-112_1%3a0.svn20110115-0.0_i386.deb) ...
Selecting previously deselected package libxvidcore4.
Unpacking libxvidcore4 (from .../libxvidcore4_2%3a1.2.2-0.1_i386.deb) ...
Preparing to replace libavcodec52 4:0.5.2-6 (using .../libavcodec52_5%3a0.6.1+svn20101128-0.2_i386.deb) ...
Unpacking replacement libavcodec52 ...
Preparing to replace libpostproc51 4:0.5.2-6 (using .../libpostproc51_5%3a0.6.1+svn20101128-0.2_i386.deb) ...
Unpacking replacement libpostproc51 ...
Preparing to replace libswscale0 4:0.5.2-6 (using .../libswscale0_5%3a0.6.1+svn20101128-0.2_i386.deb) ...
Unpacking replacement libswscale0 ...
Setting up libavutil50 (5:0.6.1+svn20101128-0.2) ...
Setting up libavcore0 (5:0.6.1+svn20101128-0.2) ...
Setting up librtmp0 (2.3-2) ...
Setting up libfaac0 (1.28-0.3) ...
Setting up libmp3lame0 (3.98.4-0.0) ...
Setting up libx264-112 (1:0.svn20110115-0.0) ...
Setting up libxvidcore4 (2:1.2.2-0.1) ...
Setting up libpostproc51 (5:0.6.1+svn20101128-0.2) ...
Setting up libswscale0 (5:0.6.1+svn20101128-0.2) ...
Setting up libva-x11-1 (1.0.7-0.0) ...
Setting up libva1 (1.0.7-0.0) ...
Setting up libavcodec52 (5:0.6.1+svn20101128-0.2) ...
Setting up libavformat52 (5:0.6.1+svn20101128-0.2) ...

root@squeeze:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
Old 02-23-2011, 07:47 PM   #4
oOarthurOo
LQ Newbie
 
Registered: Feb 2011
Location: ZZ9 Plural Z Alpha
Distribution: Debian
Posts: 17

Rep: Reputation: 5
<deleted repetitive info>... too slow typing.

It was held back because it was going to install new packages. That apt-get command is similar to aptitude safe-upgrade, which upgrades packages if it doesn't remove packages. dist-upgrade's aptitude near-equivalent is aptitude full-upgrade

Last edited by oOarthurOo; 02-24-2011 at 02:39 AM. Reason: Said equivilant out of laziness, fixed wording to be more precise.
 
Old 02-24-2011, 01:29 AM   #5
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Quote:
That apt-get command must be the equivalent of aptitude safe-upgrade,
If in doubt check the man-page:
apt-get
Quote:
upgrade
upgrade is used to install the newest versions of all packages currently installed on the system from the sources
enumerated in /etc/apt/sources.list. Packages currently installed with new versions available are retrieved and
upgraded; under no circumstances are currently installed packages removed, or packages not already installed retrieved
and installed.
New versions of currently installed packages that cannot be upgraded without changing the install status
of another package will be left at their current version. An update must be performed first so that apt-get knows that
new versions of packages are available.
aptitude:
Quote:
safe-upgrade
Upgrades installed packages to their most recent version. Installed packages will not be removed unless they are unused
(see the section “Managing Automatically Installed Packages” in the aptitude reference manual). Packages which are not
currently installed may be installed to resolve dependencies unless the --no-new-installs command-line option is
supplied.


If no <package>s are listed on the command line, aptitude will attempt to upgrade every package that can be upgraded.
Otherwise, aptitude will attempt to upgrade only the packages which it is instructed to upgrade. The <package>s can be
extended with suffixes in the same manner as arguments to aptitude install, so you can also give additional instructions
to aptitude here; for instance, aptitude safe-upgrade bash dash- will attempt to upgrade the bash package and remove the
dash package.
Does it matter? Good question. Not sure, i guess some say so.
My point is: it does not make that much sense to compare apt-get and aptitude point-to-point (like in: "x is equivalent to y").
You could have easily asked about that at another forum... in the past.

Last edited by j1alu; 02-24-2011 at 01:34 AM.
 
Old 02-24-2011, 02:31 AM   #6
oOarthurOo
LQ Newbie
 
Registered: Feb 2011
Location: ZZ9 Plural Z Alpha
Distribution: Debian
Posts: 17

Rep: Reputation: 5
cccc
Quote:
I try to update my squeeze using apt-get upgrade and get the following problem:
pljvaldez
Quote:
did you try doing an apt-get dist-upgrade? I'm trying to get is a better error message as to why they have been kept back.
oOarthurOo
Quote:
It was held back because it was going to install new packages.
nadir
Quote:
My point is: it does not make that much sense to compare apt-get and aptitude point-to-point (like in: "x is equivalent to y").
You could have easily asked about that at another forum... in the past.
Thanks for correcting my sloppy word usage Nadir. I should've said comparable, not equivalent. Also thanks for clarifying what the comparing means. with an example of someone comparing two things (x & y). Also thanks for mentioning manpages, hadn't heard of those before. And thanks for implying I've been too lazy to either read a manpage or ask someone before. Pretty lucky guess I got the answer right despite having no idea what a manpage is or what is means to compare things, eh? All in all Nadir, you've just been super helpful. All around. In all forums. So thanks.

Last edited by oOarthurOo; 02-24-2011 at 02:34 AM.
 
Old 02-24-2011, 03:28 AM   #7
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Assuming that i am not wrong:
No, they are not comparable neither.
The one does install new packages, the other one does not.
So: no. Your answer was not right.
 
Old 02-24-2011, 10:40 AM   #8
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Don't make me pull this car over!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] apt-get upgrade keeps some packages back 10110111 Ubuntu 5 09-30-2010 05:50 AM
apt-get upgrade packages have been kept back cccc Debian 7 04-11-2007 02:35 PM
Aptitude -- Packages being held back snuffy115 Debian 2 02-19-2007 12:18 AM
Uninstalled too many packages, but don't know what to put back qscomputing Linux - General 2 03-31-2006 09:54 PM
Reason for packages being held back Whitman Debian 7 07-23-2004 06:54 PM


All times are GMT -5. The time now is 02:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration