LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   packages have been kept back (http://www.linuxquestions.org/questions/debian-26/packages-have-been-kept-back-864640/)

cccc 02-23-2011 08:29 PM

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


pljvaldez 02-23-2011 08:36 PM

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.

cccc 02-23-2011 08:43 PM

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.


oOarthurOo 02-23-2011 08:47 PM

<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

j1alu 02-24-2011 02:29 AM

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.

oOarthurOo 02-24-2011 03:31 AM

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.

j1alu 02-24-2011 04:28 AM

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.

pljvaldez 02-24-2011 11:40 AM

Don't make me pull this car over!!! :D


All times are GMT -5. The time now is 01:06 PM.