How do I fix my repositories?

Charles IRONS irons.charles at gmail.com
Mon Aug 20 19:43:18 UTC 2018


Hello User Tech Support  

I get error "Failed to download repository information. Check your
Internet connection."

I saw so much news from Ubuntu about snaps that I thought it was time I
learnt more.

So I found the tutorial on the website :

https://tutorials.ubuntu.com/tutorial/basic-snap-usage#1

I am a retired Ubuntu end-user so I tried just reading the steps first.
Then I tried to install snapd. 
That showed 41 packages were "no longer required" as you will see from
the clips of terminal session messages quoted below.

I am preparing to upgrade to Ubuntu 18.04.1 and am deleting lots of old
files. That is why I decided to remove the "no longer required" as the
messages told me. 
Big mistake. The removal ran for maybe an hour and then the software
repositories were not accessible. 
"Failed to download repository information. Check your Internet
connection."
I don't know why apt could not connect to the network because I was
able to access other websites. 
Maybe the removal disabled the connection??

I hope you will be able to tell me how to correct the situation!!
*************************************

chas at Charles-PC:~$ sudo apt install snapd
[sudo] password for chas: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  libllvm4.0 libllvm5.0 libqmi-glib1 libqpdf17 linux-headers-4.4.0-101
  linux-headers-4.4.0-101-generic linux-headers-4.4.0-103
  linux-headers-4.4.0-103-generic linux-headers-4.4.0-104
<snip>
linux-headers-4.4.0-81-generic linux-headers-4.4.0-83
  linux-headers-4.4.0-83-generic linux-headers-4.4.0-87
<snip>
linux-headers-4.4.0-98-generic linux-image-4.4.0-101-generic
  linux-image-4.4.0-103-generic linux-image-4.4.0-104-generic
<snip>
linux-image-extra-4.4.0-103-generic linux-image-extra-4.4.0-104-generic
  linux-image-extra-4.4.0-109-generic linux-image-extra-4.4.0-112-
generic
<snip>
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  snapd
1 to upgrade, 0 to newly install, 0 to remove and 12 not to upgrade.
Need to get 14.1 MB of archives.
After this operation, 1,167 kB of additional disk space will be used.
Err:1 http://ubuntu.mirror.neology.co.za/ubuntu xenial-updates/main
amd64 snapd amd64 2.33.1ubuntu2
  Cannot initiate the connection to ubuntu.mirror.neology.co.za:80
(2001:43e8:10:42::25). - connect (101: Network is unreachable) [IP:
2001:43e8:10:42::25 80]
E: Failed to fetch http://ubuntu.mirror.neology.co.za/ubuntu/pool/main/
s/snapd/snapd_2.33.1ubuntu2_amd64.deb  Cannot initiate the connection
to ubuntu.mirror.neology.co.za:80 (2001:43e8:10:42::25). - connect
(101: Network is unreachable) [IP: 2001:43e8:10:42::25 80]

E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?
chas at Charles-PC:~$ sudo apt autoremove
<snip>
Removing linux-image-4.4.0-98-generic (4.4.0-98.121) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-98-
generic /boot/vmlinuz-4.4.0-98-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-98-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-98-
generic /boot/vmlinuz-4.4.0-98-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-130-generic
Found initrd image: /boot/initrd.img-4.4.0-130-generic
Found linux image: /boot/vmlinuz-4.4.0-128-generic
Found initrd image: /boot/initrd.img-4.4.0-128-generic
Found linux image: /boot/vmlinuz-3.13.0-92-generic
Found initrd image: /boot/initrd.img-3.13.0-92-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
Processing triggers for libc-bin (2.23-0ubuntu10) ...
chas at Charles-PC:~$ 
<snip>
W:Target Packages (partner/binary-amd64/Packages) is configured
multiple times in /etc/apt/sources.list:49 and
/etc/apt/sources.list.d/xenial-partner.list:4, 
W:Target Packages (partner/binary-i386/Packages) is configured multiple
times in /etc/apt/sources.list:49 and /etc/apt/sources.list.d/xenial-
partner.list:4,
<snip>
W:The repository 'http://ubuntu.mirror.neology.co.za/ubuntu xenial
Release' does not have a Release file., 
W:Data from such a repository can't be authenticated and is therefore
potentially dangerous to use., 
W:See apt-secure(8) manpage for repository creation and user
configuration details.,
<snip>
E:Failed to fetch http://ubuntu.mirror.neology.co.za/ubuntu/dists/xenia
l-backports/restricted/source/Sources  
Cannot initiate the connection to ubuntu.mirror.neology.co.za:80
(2001:43e8:10:42::25). - connect (101: Network is unreachable) [IP:
2001:43e8:10:42::25 80]
<snip>
E:Some index files failed to download. They have been ignored, or old
ones used instead.
<snip>
chas at Charles-PC:~$ sudo apt-get update
[sudo] password for chas: 
Hit:1 https://deb.opera.com/opera-stable stable InRelease
Hit:2 http://archive.canonical.com/ubuntu xenial
InRelease                                                  
Ign:3 http://ubuntu.mirror.neology.co.za/ubuntu xenial
InRelease                      
Ign:4 http://ubuntu.mirror.neology.co.za/ubuntu xenial-updates
InRelease
<snip>
Ign:242 http://ubuntu.mirror.neology.co.za/ubuntu xenial-
security/multiverse DEP-11 64x64 Icons
Err:155 http://ubuntu.mirror.neology.co.za/ubuntu xenial/main Sources
  Cannot initiate the connection to ubuntu.mirror.neology.co.za:80
(2001:43e8:10:42::25). - connect (101: Network is unreachable) [IP:
2001:43e8:10:42::25 80]
<snip>
Reading package lists... Done
W: Target Packages (partner/binary-amd64/Packages) is configured
multiple times in /etc/apt/sources.list:49 and
/etc/apt/sources.list.d/xenial-partner.list:4
W: Target Packages (partner/binary-i386/Packages) is configured
multiple times in /etc/apt/sources.list:49 and
/etc/apt/sources.list.d/xenial-partner.list:4
<snip>
E: Failed to fetch http://ubuntu.mirror.neology.co.za/ubuntu/dists/xeni
al-security/main/source/Sources  Cannot initiate the connection to
ubuntu.mirror.neology.co.za:80 (2001:43e8:10:42::25). - connect (101:
Network is unreachable) [IP: 2001:43e8:10:42::25 80]
E: Some index files failed to download. They have been ignored, or old
ones used instead.
W: Target Packages (partner/binary-amd64/Packages) is configured
multiple times in /etc/apt/sources.list:49 and
/etc/apt/sources.list.d/xenial-partner.list:4
W: Target Packages (partner/binary-i386/Packages) is configured
multiple times in /etc/apt/sources.list:49 and
/etc/apt/sources.list.d/xenial-partner.list:4
<snip>
******************************
-- 
My preferred address is
irons.charles at gmail.com
Mobile   +2783 588 0028
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20180820/e0fff6a4/attachment-0001.html>


More information about the ubuntu-users mailing list