Problem when apt-get install

Asked by Piyush Tiwari

When I try to install php5-curl , I get following message-

Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-cli_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-mysql_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/libapache2-mod-php5_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-curl_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

DV_PROD:~$ sudo grep -R proxy /etc/apt/*
DV_PROD:~$ grep proxy /etc/environment
DV_PROD:~$ echo $http_proxy

DV_PROD:~$ echo $ftp_proxy

DV_PROD:~$ grep proxy /etc/bash.bashrc
DV_PROD:~$ grep proxy ~/.bashrc
DV_PROD:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
DV_PROD:~$ sudo fuser -vvv /var/lib/dpkg/lock
DV_PROD:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"
DV_PROD:~$ uname -a
Linux domU-12-31-39-02-5C-86 2.6.35-30-virtual #61-Ubuntu SMP Tue Oct 11 17:34:26 UTC 2011 i686 GNU/Linux
DV_PROD:~$ sudo rm /var/lib/apt/lists/lock
DV_PROD:~$ sudo rm /var/lib/dpkg/lock
DV_PROD:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
DV_PROD:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
DV_PROD:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
DV_PROD:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
DV_PROD:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
DV_PROD:~$ sudo rm -rf /var/lib/dpkg/updates/*
DV_PROD:~$ sudo rm -rf /var/lib/apt/lists
DV_PROD:~$ sudo rm /var/cache/apt/*.bin
DV_PROD:~$ sudo mkdir /var/lib/apt/lists
DV_PROD:~$ sudo mkdir /var/lib/apt/lists/partial
DV_PROD:~$ LANG=C;sudo apt-get clean
DV_PROD:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
DV_PROD:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
DV_PROD:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://us-east-1.ec2.archive.ubuntu.com maverick Release.gpg [198B]
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Get:2 http://us-east-1.ec2.archive.ubuntu.com maverick-updates Release.gpg [198B]
Ign http://security.ubuntu.com maverick-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Get:3 http://us-east-1.ec2.archive.ubuntu.com maverick Release [39.8kB]
Ign http://security.ubuntu.com maverick-security Release
Get:4 http://us-east-1.ec2.archive.ubuntu.com maverick-updates Release [39.8kB]
Ign http://security.ubuntu.com maverick-security/main Sources
Get:5 http://us-east-1.ec2.archive.ubuntu.com maverick/main Sources [829kB]
Ign http://security.ubuntu.com maverick-security/universe Sources
Ign http://security.ubuntu.com maverick-security/main i386 Packages
Ign http://security.ubuntu.com maverick-security/universe i386 Packages
Err http://security.ubuntu.com maverick-security/main Sources
  404 Not Found [IP: 91.189.91.15 80]
Get:6 http://us-east-1.ec2.archive.ubuntu.com maverick/universe Sources [4179kB]
Err http://security.ubuntu.com maverick-security/universe Sources
  404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com maverick-security/main i386 Packages
  404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com maverick-security/universe i386 Packages
  404 Not Found [IP: 91.189.91.15 80]
Get:7 http://us-east-1.ec2.archive.ubuntu.com maverick/main i386 Packages [1492kB]
Get:8 http://us-east-1.ec2.archive.ubuntu.com maverick/universe i386 Packages [5791kB]
Get:9 http://us-east-1.ec2.archive.ubuntu.com maverick-updates/main Sources [179kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com maverick-updates/universe Sources [65.2kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com maverick-updates/main i386 Packages [467kB]
Get:12 http://us-east-1.ec2.archive.ubuntu.com maverick-updates/universe i386 Packages [202kB]
Fetched 13.3MB in 17s (743kB/s)
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/main/source/Sources.gz 404 Not Found [IP: 91.189.91.15 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/universe/source/Sources.gz 404 Not Found [IP: 91.189.91.15 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/main/binary-i386/Packages.gz 404 Not Found [IP: 91.189.91.15 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/universe/binary-i386/Packages.gz 404 Not Found [IP: 91.189.91.15 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.
DV_PROD:~$ sudo dpkg --configure -a
DV_PROD:~$ sudo dpkg --clear-avail
DV_PROD:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.
DV_PROD:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.
DV_PROD:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit http://us-east-1.ec2.archive.ubuntu.com maverick Release.gpg
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Hit http://us-east-1.ec2.archive.ubuntu.com maverick-updates Release.gpg
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Hit http://us-east-1.ec2.archive.ubuntu.com maverick Release
Ign http://security.ubuntu.com maverick-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
Hit http://us-east-1.ec2.archive.ubuntu.com maverick-updates Release
Hit http://us-east-1.ec2.archive.ubuntu.com maverick/main Sources
Hit http://us-east-1.ec2.archive.ubuntu.com maverick/universe Sources
Ign http://security.ubuntu.com maverick-security Release
Hit http://us-east-1.ec2.archive.ubuntu.com maverick/main i386 Packages
Hit http://us-east-1.ec2.archive.ubuntu.com maverick/universe i386 Packages
Hit http://us-east-1.ec2.archive.ubuntu.com maverick-updates/main Sources
Hit http://us-east-1.ec2.archive.ubuntu.com maverick-updates/universe Sources
Hit http://us-east-1.ec2.archive.ubuntu.com maverick-updates/main i386 Packages
Hit http://us-east-1.ec2.archive.ubuntu.com maverick-updates/universe i386 Packages
Ign http://security.ubuntu.com maverick-security/main Sources
Ign http://security.ubuntu.com maverick-security/universe Sources
Ign http://security.ubuntu.com maverick-security/main i386 Packages
Ign http://security.ubuntu.com maverick-security/universe i386 Packages
Err http://security.ubuntu.com maverick-security/main Sources
  404 Not Found [IP: 91.189.92.190 80]
Err http://security.ubuntu.com maverick-security/universe Sources
  404 Not Found [IP: 91.189.92.190 80]
Err http://security.ubuntu.com maverick-security/main i386 Packages
  404 Not Found [IP: 91.189.92.190 80]
Err http://security.ubuntu.com maverick-security/universe i386 Packages
  404 Not Found [IP: 91.189.92.190 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/main/source/Sources.gz 404 Not Found [IP: 91.189.92.190 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/universe/source/Sources.gz 404 Not Found [IP: 91.189.92.190 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/main/binary-i386/Packages.gz 404 Not Found [IP: 91.189.92.190 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/universe/binary-i386/Packages.gz 404 Not Found [IP: 91.189.92.190 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.
DV_PROD:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 ## Note, this file is written by cloud-init on first boot of an instance
     2 ## modifications made here will not survive a re-bundle.
     3 ## if you wish to make changes you can:
     4 ## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
     5 ## or do the same in user-data
     6 ## b.) add sources in /etc/apt/sources.list.d
     7 #
     8
     9 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    10 # newer versions of the distribution.
    11 deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick main
    12 deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick main
    13
    14 ## Major bug fix updates produced after the final release of the
    15 ## distribution.
    16 deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates main
    17 deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates main
    18
    19 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    20 ## team. Also, please note that software in universe WILL NOT receive any
    21 ## review or updates from the Ubuntu security team.
    22 deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick universe
    23 deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick universe
    24 deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates universe
    25 deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates universe
    26
    27 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    28 ## team, and may not be under a free licence. Please satisfy yourself as to
    29 ## your rights to use the software. Also, please note that software in
    30 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    31 ## security team.
    32 # deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick multiverse
    33 # deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick multiverse
    34 # deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
    35 # deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
    36
    37 ## Uncomment the following two lines to add software from the 'backports'
    38 ## repository.
    39 ## N.B. software from this repository may not have been tested as
    40 ## extensively as that contained in the main release, although it includes
    41 ## newer versions of some applications which may provide useful features.
    42 ## Also, please note that software in backports WILL NOT receive any review
    43 ## or updates from the Ubuntu security team.
    44 # deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
    45 # deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
    46
    47 ## Uncomment the following two lines to add software from Canonical's
    48 ## 'partner' repository.
    49 ## This software is not part of Ubuntu, but is offered by Canonical and the
    50 ## respective vendors as a service to Ubuntu users.
    51 # deb http://archive.canonical.com/ubuntu maverick partner
    52 # deb-src http://archive.canonical.com/ubuntu maverick partner
    53
    54 deb http://security.ubuntu.com/ubuntu maverick-security main
    55 deb-src http://security.ubuntu.com/ubuntu maverick-security main
    56 deb http://security.ubuntu.com/ubuntu maverick-security universe
    57 deb-src http://security.ubuntu.com/ubuntu maverick-security universe
    58 # deb http://security.ubuntu.com/ubuntu maverick-security multiverse
    59 # deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse
DV_PROD:~$ sudo apt-get install php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libapache2-mod-php5 php5-cli php5-common php5-mysql
Suggested packages:
  php-pear php5-suhosin
The following NEW packages will be installed:
  php5-curl
The following packages will be upgraded:
  libapache2-mod-php5 php5-cli php5-common php5-mysql
4 upgraded, 1 newly installed, 0 to remove and 33 not upgraded.
Need to get 6522kB of archives.
After this operation, 127kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-cli i386 5.3.3-1ubuntu9.10
  403 Forbidden
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-mysql i386 5.3.3-1ubuntu9.10
  403 Forbidden
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main libapache2-mod-php5 i386 5.3.3-1ubuntu9.10
  403 Forbidden
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-common i386 5.3.3-1ubuntu9.10
  403 Forbidden
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-curl i386 5.3.3-1ubuntu9.10
  403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-cli_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-mysql_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/libapache2-mod-php5_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-curl_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Maverick is EOL and no longer supported in any way. I suggest you wipe Maverick off the system and perform a clean install of Precise. It is LTS and supported til April 2017.

Thanks

Revision history for this message
Warren Hill (warren-hill) said :
#2

As pointed out by Actionparsnip

You are still using 10.10. Support stopped April 10 2012. So you won't be able to install new software

I suggest you backup then do a clean install with either

Ubuntu 12.04 http://www.ubuntu.com/download

Xubuntu 12.04 http://xubuntu.org/getxubuntu/

or Lubuntu 13.04 http://www.lubuntu.net/

All 3 are supported You may want to try them all from a live CD or USB stick first then install the one you prefer.

Ubuntu 12.04 needs a reasonably powerful PC so on older hardware Xubuntu or Lubuntu may be prefered. The Xubuntu desktop is most similar to Ubuntu 10.04 and Lubuntu is the lightest fastest variant.

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#3

+1 to @Warren Hill's suggestions.

Begin from Ubuntu 12.04.2 LTS : http://releases.ubuntu.com/precise/

5 years of support and also has the ubuntu-2d session (lightweight). Choose it from login-screen

http://i.stack.imgur.com/gPLtQ.png

Regards
 NikTh

Can you help with this problem?

Provide an answer of your own, or ask Piyush Tiwari for more information if necessary.

To post a message you must log in.