Packages being kept back?

Sooner or later when you upgrade your system you would see something like:
The following packages have been kept back:
empathy mplayer mysql-server mysql-server5.0
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

This doesn’t really impose a big problem if its your laptop. Why it happens? Well usually because the “newer” versions of those packages has unsatisfied dependencies or they need to remove something already install on your system, so they pass the ball to your court and decide whether to remove and upgrade or not.

The best way to upgrade is usually with the dist-upgrade option of apt-get, or safe-upgrade of aptitude, but you still might see such issues. So the first step would be trying either sudo apt-get dist-upgrade or sudo aptitude safe-upgrade. It might, in sometimes, solve the issue.

If it doesn’t solve the issue, do apt-get install pkg-name one by one on all packages and you might figure out something. In most cases it will be holding them because newer versions remove some other packages, like in my case mplayer‘s new version removed mplayer-nogui package.

My output:

[1019][shoaibi@blade:~]$ sudo apt-get update
Writing extended state information... Done
Hit http://mirror.switch.ch karmic Release.gpg
Hit http://deb.opera.com stable Release.gpg
Ign http://deb.opera.com stable/non-free Translation-en_US
Ign http://mirror.switch.ch karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Get:1 http://dl.google.com stable Release.gpg [189B]
Ign http://dl.google.com stable/main Translation-en_US
Hit http://download.virtualbox.org karmic Release.gpg
Ign http://download.virtualbox.org karmic/non-free Translation-en_US
Hit http://archive.canonical.com karmic Release.gpg
Ign http://archive.canonical.com karmic/partner Translation-en_US
Hit http://le-web.org stable Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://deb.opera.com stable Release
Ign http://mirror.switch.ch karmic/restricted Translation-en_US
Hit http://apt.wicd.net karmic Release.gpg
Ign http://apt.wicd.net karmic/extras Translation-en_US
Ign http://mirror.switch.ch karmic/universe Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Hit http://packages.medibuntu.org karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://packages.medibuntu.org karmic/free Translation-en_US
Hit http://repository.cairo-dock.org karmic Release.gpg
Ign http://repository.cairo-dock.org karmic/cairo-dock Translation-en_US
Hit http://archive.canonical.com karmic Release
Ign http://getswiftfox.com unstable Release.gpg
Ign http://dl.google.com stable/non-free Translation-en_US
Ign http://deb.playonlinux.com karmic Release.gpg
Ign http://deb.playonlinux.com karmic/main Translation-en_US
Get:2 http://dl.google.com stable Release [2,540B]
Ign http://mirror.switch.ch karmic/multiverse Translation-en_US
Ign http://deb.opera.com stable/non-free Packages
Hit http://download.virtualbox.org karmic Release
Hit http://mirror.switch.ch karmic-updates Release.gpg
Ign http://mirror.switch.ch karmic-updates/main Translation-en_US
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://linux.getdropbox.com karmic Release.gpg
Ign http://linux.getdropbox.com karmic/main Translation-en_US
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://archive.canonical.com karmic/partner Packages
Hit http://apt.wicd.net karmic Release
Ign http://mirror.switch.ch karmic-updates/restricted Translation-en_US
Ign http://packages.medibuntu.org karmic/non-free Translation-en_US
Hit http://packages.medibuntu.org karmic Release
Ign http://mirror.switch.ch karmic-updates/universe Translation-en_US
Ign http://deb.opera.com stable/non-free Packages
Hit http://repository.cairo-dock.org karmic Release
Ign http://getswiftfox.com unstable/non-free Translation-en_US
Ign http://mirror.switch.ch karmic-updates/multiverse Translation-en_US
Get:3 http://dl.google.com stable/main Packages [669B]
Hit http://ppa.launchpad.net jaunty Release.gpg
Ign http://ppa.launchpad.net jaunty/main Translation-en_US
Hit http://ppa.launchpad.net jaunty Release.gpg
Get:4 http://deb.playonlinux.com karmic Release [1,723B]
Hit http://mirror.switch.ch karmic-backports Release.gpg
Hit http://download.virtualbox.org karmic/non-free Packages
Hit http://archive.canonical.com karmic/partner Sources
Ign http://mirror.switch.ch karmic-backports/main Translation-en_US
Hit http://deb.opera.com stable/non-free Packages
Ign http://linux.getdropbox.com karmic Release
Ign http://apt.wicd.net karmic/extras Packages
Ign http://mirror.switch.ch karmic-backports/restricted Translation-en_US
Hit http://packages.medibuntu.org karmic/free Packages
Ign http://mirror.switch.ch karmic-backports/universe Translation-en_US
Ign http://getswiftfox.com unstable Release
Hit http://repository.cairo-dock.org karmic/cairo-dock Packages
Ign http://ppa.launchpad.net jaunty/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net jaunty Release.gpg
Ign http://ppa.launchpad.net jaunty/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Ign http://mirror.switch.ch karmic-backports/multiverse Translation-en_US
Hit http://mirror.switch.ch karmic-security Release.gpg
Get:5 http://dl.google.com stable/non-free Packages [1,025B]
Ign http://deb.playonlinux.com karmic/main Packages
Ign http://mirror.switch.ch karmic-security/main Translation-en_US
Ign http://apt.wicd.net karmic/extras Packages
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://linux.getdropbox.com karmic/main Packages
Hit http://packages.medibuntu.org karmic/non-free Packages
Ign http://mirror.switch.ch karmic-security/restricted Translation-en_US
Ign http://getswiftfox.com unstable/non-free Packages
Ign http://mirror.switch.ch karmic-security/universe Translation-en_US
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Ign http://deb.playonlinux.com karmic/main Packages
Hit http://apt.wicd.net karmic/extras Packages
Ign http://mirror.switch.ch karmic-security/multiverse Translation-en_US
Ign http://linux.getdropbox.com karmic/main Sources
Hit http://mirror.switch.ch karmic-proposed Release.gpg
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://getswiftfox.com unstable/non-free Packages
Ign http://le-web.org stable/main Translation-en_US
Ign http://mirror.switch.ch karmic-proposed/restricted Translation-en_US
Hit http://deb.playonlinux.com karmic/main Packages
Ign http://mirror.switch.ch karmic-proposed/main Translation-en_US
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Ign http://mirror.switch.ch karmic-proposed/multiverse Translation-en_US
Ign http://linux.getdropbox.com karmic/main Packages
Ign http://mirror.switch.ch karmic-proposed/universe Translation-en_US
Hit http://mirror.switch.ch karmic Release
Hit http://mirror.switch.ch karmic-updates Release
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Hit http://getswiftfox.com unstable/non-free Packages
Hit http://mirror.switch.ch karmic-backports Release
Hit http://mirror.switch.ch karmic-security Release
Hit http://mirror.switch.ch karmic-proposed Release
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://mirror.switch.ch karmic/main Packages
Ign http://linux.getdropbox.com karmic/main Sources
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://mirror.switch.ch karmic/restricted Packages
Hit http://mirror.switch.ch karmic/restricted Sources
Hit http://mirror.switch.ch karmic/main Sources
Hit http://mirror.switch.ch karmic/multiverse Sources
Hit http://mirror.switch.ch karmic/universe Sources
Hit http://mirror.switch.ch karmic/universe Packages
Hit http://mirror.switch.ch karmic/multiverse Packages
Hit http://mirror.switch.ch karmic-updates/main Packages
Hit http://ppa.launchpad.net karmic Release
Hit http://linux.getdropbox.com karmic/main Packages
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://mirror.switch.ch karmic-updates/restricted Packages
Hit http://mirror.switch.ch karmic-updates/restricted Sources
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net jaunty Release
Hit http://ppa.launchpad.net jaunty Release
Hit http://mirror.switch.ch karmic-updates/main Sources
Hit http://mirror.switch.ch karmic-updates/multiverse Sources
Hit http://mirror.switch.ch karmic-updates/universe Sources
Hit http://mirror.switch.ch karmic-updates/universe Packages
Hit http://mirror.switch.ch karmic-updates/multiverse Packages
Hit http://mirror.switch.ch karmic-backports/main Packages
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net jaunty Release
Hit http://ppa.launchpad.net karmic Release
Hit http://mirror.switch.ch karmic-backports/restricted Packages
Hit http://mirror.switch.ch karmic-backports/universe Packages
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://linux.getdropbox.com karmic/main Sources
Hit http://mirror.switch.ch karmic-backports/multiverse Packages
Hit http://mirror.switch.ch karmic-backports/main Sources
Hit http://mirror.switch.ch karmic-backports/restricted Sources
Hit http://mirror.switch.ch karmic-backports/universe Sources
Hit http://mirror.switch.ch karmic-backports/multiverse Sources
Hit http://mirror.switch.ch karmic-security/main Packages
Hit http://mirror.switch.ch karmic-security/restricted Packages
Hit http://mirror.switch.ch karmic-security/restricted Sources
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://mirror.switch.ch karmic-security/main Sources
Hit http://mirror.switch.ch karmic-security/multiverse Sources
Hit http://mirror.switch.ch karmic-security/universe Sources
Hit http://mirror.switch.ch karmic-security/universe Packages
Hit http://mirror.switch.ch karmic-security/multiverse Packages
Hit http://mirror.switch.ch karmic-proposed/restricted Packages
Hit http://mirror.switch.ch karmic-proposed/main Packages
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://mirror.switch.ch karmic-proposed/multiverse Packages
Hit http://mirror.switch.ch karmic-proposed/universe Packages
Hit http://mirror.switch.ch karmic-proposed/restricted Sources
Hit http://le-web.org stable Release
Hit http://mirror.switch.ch karmic-proposed/main Sources
Hit http://mirror.switch.ch karmic-proposed/multiverse Sources
Hit http://mirror.switch.ch karmic-proposed/universe Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Ign http://ppa.launchpad.net jaunty/main Packages
Ign http://ppa.launchpad.net jaunty/main Sources
Hit http://ppa.launchpad.net jaunty/main Packages
Hit http://ppa.launchpad.net jaunty/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Ign http://ppa.launchpad.net jaunty/main Packages
Ign http://ppa.launchpad.net jaunty/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Ign http://le-web.org stable/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Ign http://ppa.launchpad.net jaunty/main Packages
Ign http://ppa.launchpad.net jaunty/main Sources
Ign http://ppa.launchpad.net jaunty/main Packages
Ign http://ppa.launchpad.net jaunty/main Sources
Hit http://ppa.launchpad.net jaunty/main Packages
Hit http://ppa.launchpad.net jaunty/main Sources
Hit http://ppa.launchpad.net jaunty/main Packages
Hit http://ppa.launchpad.net jaunty/main Sources
Ign http://le-web.org stable/main Packages
Hit http://le-web.org stable/main Packages
Fetched 4,424B in 13s (329B/s)
Reading package lists... Done

[1020][shoaibi@blade:~]$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
empathy mplayer mysql-server mysql-server-5.0
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

[1021][shoaibi@blade:~]$ sudo aptitude upgrade
W: The "upgrade" command is deprecated; use "safe-upgrade" instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages have been kept back:
empathy mplayer{a} mysql-server mysql-server-5.0
The following packages will be REMOVED:
libggi-target-x{u} libggi2{u} libgii1{u} libgii1-target-x{u}
libopencore-amrnb0{u} libopencore-amrwb0{u}
0 packages upgraded, 0 newly installed, 6 to remove and 4 not upgraded.
Need to get 0B of archives. After unpacking 2,761kB will be freed.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
(Reading database ... 349850 files and directories currently installed.)
Removing libggi-target-x ...
Removing libggi2 ...
Removing libgii1-target-x ...
Removing libgii1 ...
Removing libopencore-amrnb0 ...
Removing libopencore-amrwb0 ...
Processing triggers for man-db ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

[1022][shoaibi@blade:~]$ sudo aptitude safe-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages have been kept back:
empathy mplayer{a} mysql-server mysql-server-5.0
0 packages upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

[1023][shoaibi@blade:~]$ sudo apt-get install empathy
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:
empathy: Depends: empathy-common (= 2.29.3-1~ppa9.10+1) but it is not going to be installed
E: Broken packages

[1024][shoaibi@blade:~]$ sudo apt-get install empathy-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
geoclue telepathy-gabble geoclue-localnet libtelepathy-farsight0 geoclue-yahoo
libchamplain-0.4-0 telepathy-salut libgeoclue0 libggi2 libgii1 libgii1-target-x
libchamplain-gtk-0.4-0 geoclue-manual libopencore-amrnb0 ttf-wqy-zenhei
geoclue-hostip libggi-target-x libloudmouth1-0 libopencore-amrwb0
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
empathy-doc indicator-applet-session indicator-session libempathy-common
libempathy-gtk-common libempathy-gtk28 libempathy30 ubuntu-desktop
The following NEW packages will be installed:
empathy-common
0 upgraded, 1 newly installed, 8 to remove and 3 not upgraded.
Need to get 1,905kB of archives.
After this operation, 1,667kB disk space will be freed.
Do you want to continue [Y/n]?
Get:1 http://ppa.launchpad.net karmic/main empathy-common 2.29.3-1~ppa9.10+1 [1,905kB]
Fetched 1,905kB in 19s (97.9kB/s)
(Reading database ... 349833 files and directories currently installed.)
Removing empathy-doc ...
Removing ubuntu-desktop ...
Removing indicator-applet-session ...
Removing indicator-session ...
Removing libempathy-gtk28 ...
Removing libempathy30 ...
Removing libempathy-common ...
Removing libempathy-gtk-common ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for hicolor-icon-theme ...
Selecting previously deselected package empathy-common.
(Reading database ... 348796 files and directories currently installed.)
Unpacking empathy-common (from .../empathy-common_2.29.3-1~ppa9.10+1_all.deb) ...
Processing triggers for hicolor-icon-theme ...
Setting up empathy-common (2.29.3-1~ppa9.10+1) ...

[1025][shoaibi@blade:~]$ sudo apt-get install empathy
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libggi2 libgii1 libgii1-target-x libopencore-amrnb0 ttf-wqy-zenhei
libggi-target-x libopencore-amrwb0
Use 'apt-get autoremove' to remove them.
Suggested packages:
telepathy-haze telepathy-butterfly
The following NEW packages will be installed:
empathy
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 615kB of archives.
After this operation, 1,327kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net karmic/main empathy 2.29.3-1~ppa9.10+1 [615kB]
Fetched 615kB in 7s (87.7kB/s)
Selecting previously deselected package empathy.
(Reading database ... 349725 files and directories currently installed.)
Unpacking empathy (from .../empathy_2.29.3-1~ppa9.10+1_amd64.deb) ...
Processing triggers for desktop-file-utils ...
Processing triggers for man-db ...
Setting up empathy (2.29.3-1~ppa9.10+1) ...

[1026][shoaibi@blade:~]$ sudo apt-get install mplayer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
ttf-wqy-zenhei
Use 'apt-get autoremove' to remove them.
Suggested packages:
w64codecs mplayer-doc smplayer
The following packages will be REMOVED:
mplayer-nogui
The following packages will be upgraded:
mplayer
1 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
Need to get 5,106kB of archives.
After this operation, 1,880kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://ppa.launchpad.net karmic/main mplayer 2:1.0~rc3+svn20090904-0karmic5 [5,106kB]
Fetched 5,106kB in 49s (102kB/s)
dpkg: mplayer-nogui: dependency problems, but removing anyway as you requested:
mplayer depends on mplayer-nogui; however:
Package mplayer-nogui is to be removed.
(Reading database ... 349741 files and directories currently installed.)
Removing mplayer-nogui ...
Processing triggers for man-db ...
(Reading database ... 349723 files and directories currently installed.)
Preparing to replace mplayer 2:1.0~rc3+svn20090426-1ubuntu10 (using .../mplayer_2%3a1.0~rc3+svn20090904-0karmic5_amd64.deb) ...
Unpacking replacement mplayer ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for menu ...
Setting up mplayer (2:1.0~rc3+svn20090904-0karmic5) ...
Installing new version of config file /etc/mplayer/mplayer.conf ...
Installing new version of config file /etc/mplayer/input.conf ...
Installing new version of config file /etc/mplayer/menu.conf ...

[1027][shoaibi@blade:~]$ sudo apt-get install mysql-server mysql-server-5.0
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:
mysql-server: Depends: mysql-server-5.1 but it is not going to be installed
E: Broken packages

[1028][shoaibi@blade:~]$ sudo apt-get install mysql-server-5.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
ttf-wqy-zenhei
Use 'apt-get autoremove' to remove them.
Suggested packages:
tinyca mysql-doc-5.0
The following packages will be REMOVED:
mysql-server
The following packages will be upgraded:
mysql-server-5.0
1 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 24.2MB of archives.
After this operation, 225kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://mirror.switch.ch karmic/universe mysql-server-5.0 5.1.30really5.0.83-0ubuntu3 [24.2MB]
Fetched 24.2MB in 3min 47s (106kB/s)
Preconfiguring packages ...
(Reading database ... 349783 files and directories currently installed.)
Removing mysql-server ...
(Reading database ... 349781 files and directories currently installed.)
Preparing to replace mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 (using .../mysql-server-5.0_5.1.30really5.0.83-0ubuntu3_amd64.deb) ...
* Stopping MySQL database server mysqld [ OK ]
* Stopping MySQL database server mysqld [ OK ]
Unpacking replacement mysql-server-5.0 ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Setting up mysql-server-5.0 (5.1.30really5.0.83-0ubuntu3) ...
Installing new version of config file /etc/init.d/mysql ...
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.

[1029][shoaibi@blade:~]$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
ttf-wqy-zenhei
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
mysql-client-5.1 mysql-server-5.1 mysql-server-core-5.1
Suggested packages:
tinyca
The following packages will be REMOVED:
mysql-client-5.0 mysql-server-5.0 mysql-server-core-5.0
The following NEW packages will be installed:
mysql-client-5.1 mysql-server mysql-server-5.1 mysql-server-core-5.1
0 upgraded, 4 newly installed, 3 to remove and 0 not upgraded.
Need to get 20.3MB of archives.
After this operation, 59.6MB disk space will be freed.
Do you want to continue [Y/n]?
Get:1 http://mirror.switch.ch karmic/main mysql-client-5.1 5.1.37-1ubuntu5 [8,833kB]
Get:2 http://mirror.switch.ch karmic/main mysql-server-core-5.1 5.1.37-1ubuntu5 [4,125kB]
Get:3 http://mirror.switch.ch karmic/main mysql-server-5.1 5.1.37-1ubuntu5 [7,271kB]
Get:4 http://mirror.switch.ch karmic/main mysql-server 5.1.37-1ubuntu5 [63.9kB]
Fetched 20.3MB in 3min 13s (105kB/s)
Preconfiguring packages ...
(Reading database ... 349826 files and directories currently installed.)
Removing mysql-server-5.0 ...
* Stopping MySQL database server mysqld [ OK ]
Removing mysql-client-5.0 ...
Removing mysql-server-core-5.0 ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Selecting previously deselected package mysql-client-5.1.
(Reading database ... 347349 files and directories currently installed.)
Unpacking mysql-client-5.1 (from .../mysql-client-5.1_5.1.37-1ubuntu5_amd64.deb) ...
Selecting previously deselected package mysql-server-core-5.1.
Unpacking mysql-server-core-5.1 (from .../mysql-server-core-5.1_5.1.37-1ubuntu5_amd64.deb) ...
Selecting previously deselected package mysql-server-5.1.
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.37-1ubuntu5_amd64.deb) ...
* Stopping MySQL database server mysqld [ OK ]
Selecting previously deselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.1.37-1ubuntu5_all.deb) ...
Processing triggers for man-db ...
Processing triggers for menu ...
Processing triggers for ureadahead ...
Setting up mysql-client-5.1 (5.1.37-1ubuntu5) ...

Setting up mysql-server-core-5.1 (5.1.37-1ubuntu5) ...
Setting up mysql-server-5.1 (5.1.37-1ubuntu5) ...
Installing new version of config file /etc/init.d/mysql ...
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.

Setting up mysql-server (5.1.37-1ubuntu5) ...
Processing triggers for menu ...
[1030][shoaibi@blade:~]$ sudo apt-get update
Hit http://mirror.switch.ch karmic Release.gpg
Hit http://deb.opera.com stable Release.gpg
Ign http://deb.opera.com stable/non-free Translation-en_US
Hit http://archive.canonical.com karmic Release.gpg
Ign http://archive.canonical.com karmic/partner Translation-en_US
Ign http://mirror.switch.ch karmic/main Translation-en_US
Hit http://le-web.org stable Release.gpg
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://download.virtualbox.org karmic Release.gpg
Get:1 http://dl.google.com stable Release.gpg [189B]
Ign http://download.virtualbox.org karmic/non-free Translation-en_US
Ign http://dl.google.com stable/main Translation-en_US
Hit http://deb.opera.com stable Release
Hit http://archive.canonical.com karmic Release
Ign http://mirror.switch.ch karmic/restricted Translation-en_US
Ign http://deb.playonlinux.com karmic Release.gpg
Ign http://deb.playonlinux.com karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Ign http://mirror.switch.ch karmic/universe Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://linux.getdropbox.com karmic Release.gpg
Ign http://linux.getdropbox.com karmic/main Translation-en_US
Hit http://packages.medibuntu.org karmic Release.gpg
Ign http://packages.medibuntu.org karmic/free Translation-en_US
Hit http://apt.wicd.net karmic Release.gpg
Hit http://archive.canonical.com karmic/partner Packages
Ign http://apt.wicd.net karmic/extras Translation-en_US
Ign http://deb.opera.com stable/non-free Packages
Hit http://repository.cairo-dock.org karmic Release.gpg
Ign http://mirror.switch.ch karmic/multiverse Translation-en_US
Ign http://getswiftfox.com unstable Release.gpg
Ign http://dl.google.com stable/non-free Translation-en_US
Ign http://repository.cairo-dock.org karmic/cairo-dock Translation-en_US
Hit http://download.virtualbox.org karmic Release
Get:2 http://dl.google.com stable Release [2,540B]
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://mirror.switch.ch karmic-updates Release.gpg
Ign http://mirror.switch.ch karmic-updates/main Translation-en_US
Ign http://mirror.switch.ch karmic-updates/restricted Translation-en_US
Get:3 http://deb.playonlinux.com karmic Release [1,723B]
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://archive.canonical.com karmic/partner Sources
Ign http://deb.opera.com stable/non-free Packages
Ign http://mirror.switch.ch karmic-updates/universe Translation-en_US
Ign http://packages.medibuntu.org karmic/non-free Translation-en_US
Ign http://mirror.switch.ch karmic-updates/multiverse Translation-en_US
Ign http://linux.getdropbox.com karmic Release
Hit http://apt.wicd.net karmic Release
Hit http://packages.medibuntu.org karmic Release
Hit http://mirror.switch.ch karmic-backports Release.gpg
Ign http://getswiftfox.com unstable/non-free Translation-en_US
Hit http://ppa.launchpad.net jaunty Release.gpg
Ign http://ppa.launchpad.net jaunty/main Translation-en_US
Hit http://ppa.launchpad.net jaunty Release.gpg
Ign http://ppa.launchpad.net jaunty/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Ign http://mirror.switch.ch karmic-backports/main Translation-en_US
Hit http://download.virtualbox.org karmic/non-free Packages
Hit http://repository.cairo-dock.org karmic Release
Get:4 http://dl.google.com stable/main Packages [669B]
Ign http://mirror.switch.ch karmic-backports/restricted Translation-en_US
Hit http://deb.opera.com stable/non-free Packages
Ign http://deb.playonlinux.com karmic/main Packages
Ign http://mirror.switch.ch karmic-backports/universe Translation-en_US
Hit http://ppa.launchpad.net jaunty Release.gpg
Ign http://ppa.launchpad.net jaunty/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Ign http://apt.wicd.net karmic/extras Packages
Hit http://packages.medibuntu.org karmic/free Packages
Ign http://linux.getdropbox.com karmic/main Packages
Ign http://mirror.switch.ch karmic-backports/multiverse Translation-en_US
Hit http://mirror.switch.ch karmic-security Release.gpg
Ign http://getswiftfox.com unstable Release
Ign http://mirror.switch.ch karmic-security/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Get:5 http://dl.google.com stable/non-free Packages [1,025B]
Ign http://deb.playonlinux.com karmic/main Packages
Hit http://repository.cairo-dock.org karmic/cairo-dock Packages
Ign http://mirror.switch.ch karmic-security/restricted Translation-en_US
Ign http://mirror.switch.ch karmic-security/universe Translation-en_US
Ign http://apt.wicd.net karmic/extras Packages
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://packages.medibuntu.org karmic/non-free Packages
Ign http://le-web.org stable/main Translation-en_US
Ign http://linux.getdropbox.com karmic/main Sources
Ign http://getswiftfox.com unstable/non-free Packages
Ign http://mirror.switch.ch karmic-security/multiverse Translation-en_US
Hit http://mirror.switch.ch karmic-proposed Release.gpg
Ign http://mirror.switch.ch karmic-proposed/restricted Translation-en_US
Hit http://deb.playonlinux.com karmic/main Packages
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Ign http://mirror.switch.ch karmic-proposed/main Translation-en_US
Hit http://apt.wicd.net karmic/extras Packages
Ign http://mirror.switch.ch karmic-proposed/multiverse Translation-en_US
Ign http://getswiftfox.com unstable/non-free Packages
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Ign http://linux.getdropbox.com karmic/main Packages
Ign http://mirror.switch.ch karmic-proposed/universe Translation-en_US
Hit http://mirror.switch.ch karmic Release
Hit http://mirror.switch.ch karmic-updates Release
Hit http://mirror.switch.ch karmic-backports Release
Hit http://mirror.switch.ch karmic-security Release
Hit http://mirror.switch.ch karmic-proposed Release
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://getswiftfox.com unstable/non-free Packages
Ign http://linux.getdropbox.com karmic/main Sources
Hit http://mirror.switch.ch karmic/main Packages
Hit http://mirror.switch.ch karmic/restricted Packages
Hit http://mirror.switch.ch karmic/restricted Sources
Hit http://mirror.switch.ch karmic/main Sources
Hit http://mirror.switch.ch karmic/multiverse Sources
Hit http://mirror.switch.ch karmic/universe Sources
Hit http://mirror.switch.ch karmic/universe Packages
Hit http://mirror.switch.ch karmic/multiverse Packages
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://mirror.switch.ch karmic-updates/main Packages
Hit http://mirror.switch.ch karmic-updates/restricted Packages
Hit http://mirror.switch.ch karmic-updates/restricted Sources
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release.gpg
Ign http://ppa.launchpad.net karmic/main Translation-en_US
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://mirror.switch.ch karmic-updates/main Sources
Hit http://mirror.switch.ch karmic-updates/multiverse Sources
Hit http://linux.getdropbox.com karmic/main Packages
Hit http://mirror.switch.ch karmic-updates/universe Sources
Hit http://mirror.switch.ch karmic-updates/universe Packages
Hit http://mirror.switch.ch karmic-updates/multiverse Packages
Hit http://mirror.switch.ch karmic-backports/main Packages
Hit http://mirror.switch.ch karmic-backports/restricted Packages
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://mirror.switch.ch karmic-backports/universe Packages
Hit http://mirror.switch.ch karmic-backports/multiverse Packages
Hit http://mirror.switch.ch karmic-backports/main Sources
Hit http://mirror.switch.ch karmic-backports/restricted Sources
Hit http://mirror.switch.ch karmic-backports/universe Sources
Hit http://mirror.switch.ch karmic-backports/multiverse Sources
Hit http://mirror.switch.ch karmic-security/main Packages
Hit http://mirror.switch.ch karmic-security/restricted Packages
Hit http://linux.getdropbox.com karmic/main Sources
Hit http://mirror.switch.ch karmic-security/restricted Sources
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net jaunty Release
Hit http://ppa.launchpad.net jaunty Release
Hit http://mirror.switch.ch karmic-security/main Sources
Hit http://mirror.switch.ch karmic-security/multiverse Sources
Hit http://mirror.switch.ch karmic-security/universe Sources
Hit http://mirror.switch.ch karmic-security/universe Packages
Hit http://mirror.switch.ch karmic-security/multiverse Packages
Hit http://mirror.switch.ch karmic-proposed/restricted Packages
Hit http://mirror.switch.ch karmic-proposed/main Packages
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net jaunty Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://mirror.switch.ch karmic-proposed/multiverse Packages
Hit http://mirror.switch.ch karmic-proposed/universe Packages
Hit http://mirror.switch.ch karmic-proposed/restricted Sources
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://mirror.switch.ch karmic-proposed/main Sources
Hit http://mirror.switch.ch karmic-proposed/multiverse Sources
Hit http://mirror.switch.ch karmic-proposed/universe Sources
Hit http://le-web.org stable Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Ign http://ppa.launchpad.net jaunty/main Packages
Ign http://ppa.launchpad.net jaunty/main Sources
Hit http://ppa.launchpad.net jaunty/main Packages
Hit http://ppa.launchpad.net jaunty/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Ign http://ppa.launchpad.net jaunty/main Packages
Ign http://le-web.org stable/main Packages
Ign http://ppa.launchpad.net jaunty/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://ppa.launchpad.net karmic/main Sources
Ign http://ppa.launchpad.net jaunty/main Packages
Ign http://ppa.launchpad.net jaunty/main Sources
Ign http://ppa.launchpad.net jaunty/main Packages
Ign http://ppa.launchpad.net jaunty/main Sources
Hit http://ppa.launchpad.net jaunty/main Packages
Hit http://ppa.launchpad.net jaunty/main Sources
Hit http://ppa.launchpad.net jaunty/main Packages
Hit http://ppa.launchpad.net jaunty/main Sources
Ign http://le-web.org stable/main Packages
Hit http://le-web.org stable/main Packages
Fetched 4,424B in 13s (336B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Tags: , , , , , , ,

2 Comments

  1. Caroline Marks says:

    I love to read articles that are informative, Thanks again for a nice site

  2. Intostephep says:

    Awesome blogpost, didn’t thought reading it would be so amazing when I read the title.

Leave a Comment