Lubuntu Software updater/Software center, first download always failing

Asked by crxtrdude

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://archive.ubuntu.com/ubuntu/pool/main/c/cli-common/cli-common_0.9+nmu1_all.deb Temporary failure resolving 'archive.ubuntu.com'

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
actionparsnip (andrew-woodhead666) said :
#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
crxtrdude (crxtrtupgm) said :
#2

Ran sudo apt-get update:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-updates/main/source/Sources Hash Sum mismatch

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-updates/main/binary-i386/Packages Hash Sum mismatch

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
actionparsnip (andrew-woodhead666) said :
#3

cd $HOME
wget https://dl.dropbox.com/u/8850924/fixpackage
chmod +x ./fixpackage
sudo ./fixpackage

hope that helps.

Revision history for this message
crxtrdude (crxtrtupgm) said :
#4

it probably would be an internet problem I think:

--2015-10-10 01:06:48-- https://dl.dropbox.com/u/8850924/fixpackage
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
crxtrdude (crxtrtupgm) said :
#5

Here is the results of fixpackage:

cp: cannot stat ‘/var/lib/dpkg/available-old’: No such file or directory
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the download directory
Err http://archive.ubuntu.com vivid InRelease

Err http://archive.ubuntu.com vivid-updates InRelease

Err http://archive.ubuntu.com vivid-backports InRelease

Get:1 http://archive.ubuntu.com vivid-security InRelease [64.4 kB]
Get:2 http://archive.ubuntu.com vivid Release.gpg [933 B]
Get:3 http://archive.ubuntu.com vivid-updates Release.gpg [933 B]
Get:4 http://archive.ubuntu.com vivid-backports Release.gpg [933 B]
Get:5 http://archive.ubuntu.com vivid-security/main Sources [44.7 kB]
Get:6 http://archive.ubuntu.com vivid-security/restricted Sources [2,792 B]
Get:7 http://archive.ubuntu.com vivid-security/universe Sources [18.0 kB]
Get:8 http://archive.ubuntu.com vivid-security/multiverse Sources [1,966 B]
Get:9 http://archive.ubuntu.com vivid-security/main i386 Packages [119 kB]
Get:10 http://archive.ubuntu.com vivid-security/restricted i386 Packages [10.2 kB]
Get:11 http://archive.ubuntu.com vivid-security/universe i386 Packages [57.1 kB]
Get:12 http://archive.ubuntu.com vivid-security/multiverse i386 Packages [5,383 B]
Get:13 http://archive.ubuntu.com vivid-security/main Translation-en [63.4 kB]
Get:14 http://archive.ubuntu.com vivid-security/multiverse Translation-en [2,246 B]
Get:15 http://archive.ubuntu.com vivid-security/restricted Translation-en [2,607 B]
Get:16 http://archive.ubuntu.com vivid-security/universe Translation-en [35.3 kB]
Get:17 http://archive.ubuntu.com vivid Release [217 kB]
Get:18 http://archive.ubuntu.com vivid-updates Release [63.5 kB]
Get:19 http://archive.ubuntu.com vivid-backports Release [63.5 kB]
Get:20 http://archive.ubuntu.com vivid/main Sources [1,077 kB]
                                                                                                                                                                Get:21 http://archive.ubuntu.com vivid/restricted Sources [7,162 B]
Get:22 http://archive.ubuntu.com vivid/universe Sources [7,017 kB]
Get:23 http://archive.ubuntu.com vivid/multiverse Sources [174 kB]
Get:24 http://archive.ubuntu.com vivid/main i386 Packages [1,361 kB]
Get:25 http://archive.ubuntu.com vivid/restricted i386 Packages [15.5 kB]
Get:26 http://archive.ubuntu.com vivid/universe i386 Packages [6,486 kB]
Get:27 http://archive.ubuntu.com vivid/multiverse i386 Packages [134 kB]
Get:28 http://archive.ubuntu.com vivid/main Translation-en [793 kB]
Get:29 http://archive.ubuntu.com vivid/multiverse Translation-en [103 kB]
Get:30 http://archive.ubuntu.com vivid/restricted Translation-en [4,228 B]
Get:31 http://archive.ubuntu.com vivid/universe Translation-en [4,456 kB]
Get:32 http://archive.ubuntu.com vivid-updates/main Sources [91.7 kB]
Get:33 http://archive.ubuntu.com vivid-updates/restricted Sources [3,687 B]
Get:34 http://archive.ubuntu.com vivid-updates/universe Sources [40.4 kB]
Get:35 http://archive.ubuntu.com vivid-updates/multiverse Sources [1,966 B]
Get:36 http://archive.ubuntu.com vivid-updates/main i386 Packages [207 kB]
Get:37 http://archive.ubuntu.com vivid-updates/restricted i386 Packages [12.8 kB]
Get:38 http://archive.ubuntu.com vivid-updates/universe i386 Packages [112 kB]
Get:39 http://archive.ubuntu.com vivid-updates/multiverse i386 Packages [5,383 B]
Get:40 http://archive.ubuntu.com vivid-updates/main Translation-en [102 kB]
Get:41 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [2,246 B]
Get:42 http://archive.ubuntu.com vivid-updates/restricted Translation-en [2,969 B]
Get:43 http://archive.ubuntu.com vivid-updates/universe Translation-en [65.5 kB]
Get:44 http://archive.ubuntu.com vivid-backports/main Sources [28 B]
Get:45 http://archive.ubuntu.com vivid-backports/restricted Sources [28 B]
Get:46 http://archive.ubuntu.com vivid-backports/universe Sources [5,268 B]
Get:47 http://archive.ubuntu.com vivid-backports/multiverse Sources [28 B]
Get:48 http://archive.ubuntu.com vivid-backports/main i386 Packages [28 B]
Get:49 http://archive.ubuntu.com vivid-backports/restricted i386 Packages [28 B]
Get:50 http://archive.ubuntu.com vivid-backports/universe i386 Packages [4,021 B]
Get:51 http://archive.ubuntu.com vivid-backports/multiverse i386 Packages [28 B]
Get:52 http://archive.ubuntu.com vivid-backports/main Translation-en [14 B]
Get:53 http://archive.ubuntu.com vivid-backports/multiverse Translation-en [14 B]
Get:54 http://archive.ubuntu.com vivid-backports/restricted Translation-en [14 B]
Get:55 http://archive.ubuntu.com vivid-backports/universe Translation-en [3,760 B]
Fetched 23.1 MB in 3min 51s (99.7 kB/s)
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-updates/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-backports/InRelease

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://archive.ubuntu.com vivid InRelease

Err http://archive.ubuntu.com vivid-updates InRelease

Err http://archive.ubuntu.com vivid-backports InRelease

Err http://archive.ubuntu.com vivid-security InRelease

Err http://archive.ubuntu.com vivid Release.gpg
  Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com vivid-updates Release.gpg
  Temporary failure resolving 'archive.ubuntu.com'
Hit http://archive.ubuntu.com vivid-backports Release.gpg
Get:1 http://archive.ubuntu.com vivid-security Release.gpg [933 B]
Hit http://archive.ubuntu.com vivid-backports Release
Get:2 http://archive.ubuntu.com vivid-security Release [63.5 kB]
Hit http://archive.ubuntu.com vivid-backports/main Sources
Hit http://archive.ubuntu.com vivid-backports/restricted Sources
Hit http://archive.ubuntu.com vivid-backports/universe Sources
Hit http://archive.ubuntu.com vivid-backports/multiverse Sources
Hit http://archive.ubuntu.com vivid-backports/main i386 Packages
Hit http://archive.ubuntu.com vivid-backports/restricted i386 Packages
Hit http://archive.ubuntu.com vivid-backports/universe i386 Packages
Hit http://archive.ubuntu.com vivid-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com vivid-backports/main Translation-en
Hit http://archive.ubuntu.com vivid-backports/multiverse Translation-en
Hit http://archive.ubuntu.com vivid-backports/restricted Translation-en
Hit http://archive.ubuntu.com vivid-backports/universe Translation-en
Get:3 http://archive.ubuntu.com vivid-security/main Sources [44.7 kB]
Get:4 http://archive.ubuntu.com vivid-security/restricted Sources [2,792 B]
Get:5 http://archive.ubuntu.com vivid-security/universe Sources [18.0 kB]
Get:6 http://archive.ubuntu.com vivid-security/multiverse Sources [1,966 B]
Get:7 http://archive.ubuntu.com vivid-security/main i386 Packages [119 kB]
Get:8 http://archive.ubuntu.com vivid-security/restricted i386 Packages [10.2 kB]
Get:9 http://archive.ubuntu.com vivid-security/universe i386 Packages [57.1 kB]
Get:10 http://archive.ubuntu.com vivid-security/multiverse i386 Packages [5,383 B]
Get:11 http://archive.ubuntu.com vivid-security/main Translation-en [63.4 kB]
Get:12 http://archive.ubuntu.com vivid-security/multiverse Translation-en [2,246 B]
Get:13 http://archive.ubuntu.com vivid-security/restricted Translation-en [2,607 B]
Get:14 http://archive.ubuntu.com vivid-security/universe Translation-en [35.3 kB]
Fetched 427 kB in 2min 17s (3,099 B/s)
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-updates/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-backports/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-security/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid/Release.gpg Temporary failure resolving 'archive.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-updates/Release.gpg Temporary failure resolving 'archive.ubuntu.com'

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-extension1a nautilus-data
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://archive.ubuntu.com/ubuntu/ vivid-updates/main libnautilus-extension1a i386 1:3.14.2-0ubuntu9.1
  Temporary failure resolving 'archive.ubuntu.com'
Get:1 http://archive.ubuntu.com/ubuntu/ vivid-updates/main nautilus-data all 1:3.14.2-0ubuntu9.1 [68.1 kB]
Fetched 68.1 kB in 17s (3,860 B/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/n/nautilus/libnautilus-extension1a_3.14.2-0ubuntu9.1_i386.deb Temporary failure resolving 'archive.ubuntu.com'

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

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#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
crxtrdude (crxtrtupgm) said :
#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://ubuntuforums.org/showthread.php?t=2203236

Saying to add a dns to /etc/network/interfaces. I added the dns-nameservers, with both the Google DNS and my router's IP.

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://ftp.jaist.ac.jp vivid InRelease [218 kB]

I then resolved some of the dependencies. Thanks for leading me to the cause of the problem

Revision history for this message
crxtrdude (crxtrtupgm) said :
#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
actionparsnip (andrew-woodhead666) said :
#9

That's basically what my command did, but your fix is more permanent.