Lubuntu Software updater/Software center, first download always failing
Release: Lubuntu 15.04 out of the box from live cd download from lubuntu.net with no updates.
Expected to happen:
When downloading files whether through update or software manager, it's expected that everything should be downloaded.
What happened instead:
Each first one of the files downloaded from repos fail.
After downloading, screen shows (from software center downloading 'keepass'):
Failed to download package files
Check your Internet connection.
Details:
Failed to fetch http://
Is this something to do with my network or something else?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- crxtrdude
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Run:
sudo apt-get update
First, then run:
sudo apt-get upgrade
followed by:
sudo apt-get dist-upgrade
Revision history for this message
|
#2 |
Ran sudo apt-get update:
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Some index files failed to download. They have been ignored, or old ones used instead.
Ran sudo apt-get upgrade:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Ran sudo apt-get dist-upgrade:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Revision history for this message
|
#3 |
cd $HOME
wget https:/
chmod +x ./fixpackage
sudo ./fixpackage
hope that helps.
Revision history for this message
|
#4 |
it probably would be an internet problem I think:
--2015-10-10 01:06:48-- https:/
Resolving dl.dropbox.com (dl.dropbox.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘dl.dropbox.com’
How to check my connections integrity?
I'll try to do it manually though, putting the download at home directly.
Revision history for this message
|
#5 |
Here is the results of fixpackage:
cp: cannot stat ‘/var/lib/
E: Could not get lock /var/cache/
E: Unable to lock the download directory
Err http://
Err http://
Err http://
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Fetched 23.1 MB in 3min 51s (99.7 kB/s)
Reading package lists... Done
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Err http://
Err http://
Err http://
Err http://
Err http://
Temporary failure resolving 'archive.
Err http://
Temporary failure resolving 'archive.
Hit http://
Get:1 http://
Hit http://
Get:2 http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Fetched 427 kB in 2min 17s (3,099 B/s)
Reading package lists... Done
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
libnautilus-
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 122 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://
Temporary failure resolving 'archive.
Get:1 http://
Fetched 68.1 kB in 17s (3,860 B/s)
E: Failed to fetch http://
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Revision history for this message
|
#6 |
Try:
echo "nameserver 8.8.8.8" | sudo tee /etc/resolve.conf > /dev/null
sudo apt-get update
sudo apt-get upgrade
Any better?
Revision history for this message
|
#7 |
Hey, I just found a solution, i think.
I've actually used a wifi router for my connection, didn't say that actually, because I thought this is a proble from the OS. I checked the net and found this thread:
http://
Saying to add a dns to /etc/network/
auto lo
iface lo inet loopback
dns-nameservers 8.8.8.8 192.168.0.1
I sudo'ed apt-get again and it successfully dowloaded the first errored package!
Get:1 http://
I then resolved some of the dependencies. Thanks for leading me to the cause of the problem
Revision history for this message
|
#8 |
BTW, The reason the link was the jaist one because I tried to use another server closest to my country.
Revision history for this message
|
#9 |
That's basically what my command did, but your fix is more permanent.