Howto fix or resolve Unable to correct missing packages on Ubuntu 12

Howto fix or resolve Unable to correct missing packages on Ubuntu 12

1. Error

root@ubuntu:~# sudo apt-get install alien dpkg-dev debhelper build-essential –fix-missing
Reading package lists… Done
Building dependency tree
Reading state information… Done
dpkg-dev is already the newest version.
dpkg-dev set to manually installed.
build-essential is already the newest version.
The following extra packages will be installed:
dh-apparmor gettext html2text intltool-debian libcroco3 libgettextpo0 liblua5.1-0 libmail-sendmail-perl libnspr4 libnss3 librpm2 librpmbuild2 librpmio2 librpmsign0 libsys-hostname-long-perl
libunistring0 po-debconf rpm rpm-common rpm2cpio
Suggested packages:
lsb-rpm lintian dh-make gettext-doc libmail-box-perl elfutils rpm-i18n
The following NEW packages will be installed:
alien debhelper dh-apparmor gettext html2text intltool-debian libcroco3 libgettextpo0 liblua5.1-0 libmail-sendmail-perl libnspr4 libnss3 librpm2 librpmbuild2 librpmio2 librpmsign0
libsys-hostname-long-perl libunistring0 po-debconf rpm rpm-common rpm2cpio
0 upgraded, 22 newly installed, 0 to remove and 48 not upgraded.
Need to get 8,956 B/4,890 kB of archives.
After this operation, 13.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main dh-apparmor all 2.7.102-0ubuntu3.5
404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/a/apparmor/dh-apparmor_2.7.102-0ubuntu3.5_all.deb 404 Not Found [IP: 91.189.91.14 80]
Unable to correct missing packages.
E: Aborting install.

2. How to fix that error

root@ubuntu:~# sudo apt-get update
Ign http://security.ubuntu.com precise-security InRelease
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise Release.gpg
Get:2 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:3 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:4 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise Release
Get:5 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:6 http://security.ubuntu.com precise-security/main Sources [59.7 kB]
Get:7 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:8 http://security.ubuntu.com precise-security/restricted Sources [1,950 B]
Get:9 http://security.ubuntu.com precise-security/universe Sources [18.9 kB]
Get:10 http://us.archive.ubuntu.com precise-updates/main Sources [199 kB]
Get:11 http://security.ubuntu.com precise-security/multiverse Sources [1,379 B]
Get:12 http://security.ubuntu.com precise-security/main i386 Packages [221 kB]
Get:13 http://us.archive.ubuntu.com precise-updates/restricted Sources [4,419 B]
Get:14 http://us.archive.ubuntu.com precise-updates/universe Sources [68.3 kB]
Get:15 http://security.ubuntu.com precise-security/restricted i386 Packages [3,968 B]
Get:16 http://security.ubuntu.com precise-security/universe i386 Packages [61.0 kB]
Get:17 http://us.archive.ubuntu.com precise-updates/multiverse Sources [4,240 B]
Get:18 http://us.archive.ubuntu.com precise-updates/main i386 Packages [457 kB]
Get:19 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,366 B]
Get:20 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:21 http://security.ubuntu.com precise-security/multiverse TranslationIndex [71 B]
Get:22 http://security.ubuntu.com precise-security/restricted TranslationIndex [71 B]
Get:23 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:24 http://security.ubuntu.com precise-security/main Translation-en [104 kB]
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Get:25 http://security.ubuntu.com precise-security/universe Translation-en [36.8 kB]
Get:26 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [8,374 B]
Get:27 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [166 kB]
Get:28 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [9,678 B]
Get:29 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B]
Get:30 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B]
Get:31 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [2,461 B]
Get:32 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B]
Hit http://us.archive.ubuntu.com precise/main Translation-en
Get:33 http://us.archive.ubuntu.com precise-backports/main Sources [2,422 B]
Get:34 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:35 http://us.archive.ubuntu.com precise-backports/universe Sources [21.5 kB]
Get:36 http://us.archive.ubuntu.com precise-backports/multiverse Sources [2,669 B]
Get:37 http://us.archive.ubuntu.com precise-backports/main i386 Packages [1,941 B]
Get:38 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:39 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [22.1 kB]
Get:40 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [2,504 B]
Get:41 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:42 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:43 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:44 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Get:45 http://us.archive.ubuntu.com precise-updates/main Translation-en [220 kB]
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Get:46 http://us.archive.ubuntu.com precise-updates/universe Translation-en [98.4 kB]
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Get:47 http://us.archive.ubuntu.com precise-backports/universe Translation-en [15.7 kB]
Fetched 1,977 kB in 27s (71.1 kB/s)
Reading package lists… Done

3. Re-run the apt command to install

root@ubuntu:~# sudo apt-get install alien dpkg-dev debhelper build-essential
Reading package lists… Done
Building dependency tree
Reading state information… Done
dpkg-dev is already the newest version.
dpkg-dev set to manually installed.
build-essential is already the newest version.
The following extra packages will be installed:
dh-apparmor gettext html2text intltool-debian libcroco3 libgettextpo0 liblua5.1-0 libmail-sendmail-perl libnspr4 libnss3 librpm2 librpmbuild2 librpmio2 librpmsign0 libsys-hostname-long-perl
libunistring0 po-debconf rpm rpm-common rpm2cpio
Suggested packages:
lsb-rpm lintian dh-make gettext-doc libmail-box-perl elfutils rpm-i18n
The following NEW packages will be installed:
alien debhelper dh-apparmor gettext html2text intltool-debian libcroco3 libgettextpo0 liblua5.1-0 libmail-sendmail-perl libnspr4 libnss3 librpm2 librpmbuild2 librpmio2 librpmsign0
libsys-hostname-long-perl libunistring0 po-debconf rpm rpm-common rpm2cpio
0 upgraded, 22 newly installed, 0 to remove and 64 not upgraded.
Need to get 9,030 B/4,890 kB of archives.
After this operation, 13.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main dh-apparmor all 2.7.102-0ubuntu3.7 [9,030 B]
Fetched 9,030 B in 0s (11.8 kB/s)
Selecting previously unselected package libcroco3.
(Reading database … 32330 files and directories currently installed.)
Unpacking libcroco3 (from …/libcroco3_0.6.5-1_i386.deb) …
Selecting previously unselected package libunistring0.
Unpacking libunistring0 (from …/libunistring0_0.9.3-5_i386.deb) …
Selecting previously unselected package libgettextpo0.
Unpacking libgettextpo0 (from …/libgettextpo0_0.18.1.1-5ubuntu3_i386.deb) …
Selecting previously unselected package liblua5.1-0.
Unpacking liblua5.1-0 (from …/liblua5.1-0_5.1.4-12ubuntu1_i386.deb) …
Selecting previously unselected package libnspr4.
Unpacking libnspr4 (from …/libnspr4_4.8.9-1ubuntu2.3_i386.deb) …
Selecting previously unselected package libnss3.
Unpacking libnss3 (from …/libnss3_3.13.1.with.ckbi.1.88-1ubuntu6.1_i386.deb) …
Selecting previously unselected package html2text.
Unpacking html2text (from …/html2text_1.3.2a-15_i386.deb) …
Selecting previously unselected package gettext.
Unpacking gettext (from …/gettext_0.18.1.1-5ubuntu3_i386.deb) …
Selecting previously unselected package intltool-debian.
Unpacking intltool-debian (from …/intltool-debian_0.35.0+20060710.1_all.deb) …
Selecting previously unselected package po-debconf.
Unpacking po-debconf (from …/po-debconf_1.0.16+nmu2ubuntu1_all.deb) …
Selecting previously unselected package dh-apparmor.
Unpacking dh-apparmor (from …/dh-apparmor_2.7.102-0ubuntu3.7_all.deb) …
Selecting previously unselected package debhelper.
Unpacking debhelper (from …/debhelper_9.20120115ubuntu3_all.deb) …
Selecting previously unselected package librpmio2.
Unpacking librpmio2 (from …/librpmio2_4.9.1.1-1build1_i386.deb) …
Selecting previously unselected package rpm-common.
Unpacking rpm-common (from …/rpm-common_4.9.1.1-1build1_i386.deb) …
Selecting previously unselected package librpm2.
Unpacking librpm2 (from …/librpm2_4.9.1.1-1build1_i386.deb) …
Selecting previously unselected package librpmbuild2.
Unpacking librpmbuild2 (from …/librpmbuild2_4.9.1.1-1build1_i386.deb) …
Selecting previously unselected package librpmsign0.
Unpacking librpmsign0 (from …/librpmsign0_4.9.1.1-1build1_i386.deb) …
Selecting previously unselected package rpm2cpio.
Unpacking rpm2cpio (from …/rpm2cpio_4.9.1.1-1build1_i386.deb) …
Selecting previously unselected package rpm.
Unpacking rpm (from …/rpm_4.9.1.1-1build1_i386.deb) …
Selecting previously unselected package alien.
Unpacking alien (from …/archives/alien_8.86_all.deb) …
Selecting previously unselected package libsys-hostname-long-perl.
Unpacking libsys-hostname-long-perl (from …/libsys-hostname-long-perl_1.4-2_all.deb) …
Selecting previously unselected package libmail-sendmail-perl.
Unpacking libmail-sendmail-perl (from …/libmail-sendmail-perl_0.79.16-1_all.deb) …
Processing triggers for man-db …
Processing triggers for install-info …
Setting up libcroco3 (0.6.5-1) …
Setting up libunistring0 (0.9.3-5) …
Setting up libgettextpo0 (0.18.1.1-5ubuntu3) …
Setting up liblua5.1-0 (5.1.4-12ubuntu1) …
Setting up libnspr4 (4.8.9-1ubuntu2.3) …
Setting up libnss3 (3.13.1.with.ckbi.1.88-1ubuntu6.1) …
Setting up html2text (1.3.2a-15) …
Setting up gettext (0.18.1.1-5ubuntu3) …
Setting up intltool-debian (0.35.0+20060710.1) …
Setting up po-debconf (1.0.16+nmu2ubuntu1) …
Setting up dh-apparmor (2.7.102-0ubuntu3.7) …
Setting up debhelper (9.20120115ubuntu3) …
Setting up librpmio2 (4.9.1.1-1build1) …
Setting up rpm-common (4.9.1.1-1build1) …
Setting up librpm2 (4.9.1.1-1build1) …
Setting up librpmbuild2 (4.9.1.1-1build1) …
Setting up librpmsign0 (4.9.1.1-1build1) …
Setting up rpm2cpio (4.9.1.1-1build1) …
Setting up rpm (4.9.1.1-1build1) …
Setting up alien (8.86) …
Setting up libsys-hostname-long-perl (1.4-2) …
Setting up libmail-sendmail-perl (0.79.16-1) …
Processing triggers for libc-bin …
ldconfig deferred processing now taking place
root@ubuntu:~#

That’s all. Thanks for using IThelpblog.com.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>