Problem when apt-get install
When I try to install php5-curl , I get following message-
Failed to fetch http://
Failed to fetch http://
Failed to fetch http://
Failed to fetch http://
Failed to fetch http://
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_
DISTRIB_
DISTRIB_
DV_PROD:~$ uname -a
Linux domU-12-
DV_PROD:~$ sudo rm /var/lib/
DV_PROD:~$ sudo rm /var/lib/dpkg/lock
DV_PROD:~$ sudo cp -arf /var/lib/dpkg /var/lib/
DV_PROD:~$ sudo mv /var/lib/
DV_PROD:~$ sudo cp /var/lib/
DV_PROD:~$ sudo mv /var/lib/
DV_PROD:~$ sudo cp /var/lib/
DV_PROD:~$ sudo rm -rf /var/lib/
DV_PROD:~$ sudo rm -rf /var/lib/apt/lists
DV_PROD:~$ sudo rm /var/cache/
DV_PROD:~$ sudo mkdir /var/lib/apt/lists
DV_PROD:~$ sudo mkdir /var/lib/
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-
Get:1 http://
Ign http://
Ign http://
Get:2 http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:3 http://
Ign http://
Get:4 http://
Ign http://
Get:5 http://
Ign http://
Ign http://
Ign http://
Err http://
404 Not Found [IP: 91.189.91.15 80]
Get:6 http://
Err http://
404 Not Found [IP: 91.189.91.15 80]
Err http://
404 Not Found [IP: 91.189.91.15 80]
Err http://
404 Not Found [IP: 91.189.91.15 80]
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Fetched 13.3MB in 17s (743kB/s)
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
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-
Hit http://
Ign http://
Ign http://
Hit http://
Ign http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Err http://
404 Not Found [IP: 91.189.92.190 80]
Err http://
404 Not Found [IP: 91.189.92.190 80]
Err http://
404 Not Found [IP: 91.189.92.190 80]
Err http://
404 Not Found [IP: 91.189.92.190 80]
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
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/
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_
5 ## or do the same in user-data
6 ## b.) add sources in /etc/apt/
7 #
8
9 # See http://
10 # newer versions of the distribution.
11 deb http://
12 deb-src http://
13
14 ## Major bug fix updates produced after the final release of the
15 ## distribution.
16 deb http://
17 deb-src http://
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://
23 deb-src http://
24 deb http://
25 deb-src http://
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://
33 # deb-src http://
34 # deb http://
35 # deb-src http://
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://
45 # deb-src http://
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://
52 # deb-src http://
53
54 deb http://
55 deb-src http://
56 deb http://
57 deb-src http://
58 # deb http://
59 # deb-src http://
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-
Suggested packages:
php-pear php5-suhosin
The following NEW packages will be installed:
php5-curl
The following packages will be upgraded:
libapache2-
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://
403 Forbidden
Err http://
403 Forbidden
Err http://
403 Forbidden
Err http://
403 Forbidden
Err http://
403 Forbidden
Failed to fetch http://
Failed to fetch http://
Failed to fetch http://
Failed to fetch http://
Failed to fetch http://
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:
Can you help with this problem?
Provide an answer of your own, or ask Piyush Tiwari for more information if necessary.