Howto fix E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

Howto fix E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

 

 

 

1. Error

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 48 not upgraded.
Need to get 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/main libcroco3 i386 0.6.5-1 [ 99.7 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main libunistring0 i386 0.9.3 -5 [432 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main libgettextpo0 i386 0.18.1.1-5ubuntu3 [118 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main liblua5.1-0 i386 5.1.4-12ubuntu1 [178 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libnspr4 i386 4.8.9-1ubuntu2.3 [142 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libnss3 i386 3.13.1.with.ckbi.1.88-1ubuntu6.1 [1,213 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise/main html2text i386 1.3.2a-15 [101 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise/main gettext i386 0.18.1.1-5ubuntu3 [1,122 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ precise/main intltool-debian all 0.35.0+20060710.1 [31.6 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ precise/main po-debconf all 1.0.16+nmu2ubuntu1 [210 kB]
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.15 80]
Get:11 http://us.archive.ubuntu.com/ubuntu/ precise/main debhelper all 9.20120115ubuntu3 [616 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu/ precise/main librpmio2 i386 4.9.1.1-1build1 [81.7 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu/ precise/main rpm-common i386 4.9.1.1-1build1 [19.8 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu/ precise/main librpm2 i386 4.9.1.1-1build1 [187 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu/ precise/main librpmbuild2 i386 4.9.1.1-1build1 [68.7 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu/ precise/main librpmsign0 i386 4.9.1.1-1build1 [8,816 B]
Get:17 http://us.archive.ubuntu.com/ubuntu/ precise/main rpm2cpio i386 4.9.1.1-1build1 [5,060 B]
Get:18 http://us.archive.ubuntu.com/ubuntu/ precise/main rpm i386 4.9.1.1-1build1 [151 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu/ precise/main alien all 8.86 [58.5 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu/ precise/main libsys-hostname-long-perl all 1.4-2 [11.4 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu/ precise/main libmail-sendmail-perl all 0.79.16-1 [26.5 kB]
Fetched 4,881 kB in 32s (149 kB/s)
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.15 80]
E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

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 install

root@ubuntu:~# sudo apt-get install alien dpkg-dev debhelper build-essential

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>