Snap tutorial crashed my repositories

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Snap tutorial crashed my repositories

Charles Irons
Hello 

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 :


I am a retired Ubuntu end user so I tried just reading the steps first. Then tried to install snapd. 41 packages were "no longer required" as you will see from the clips of terminal messages below.
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 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."

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

[hidden email]:~$ 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
<>
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
<>
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
<>
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
<>
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?
[hidden email]:~$ sudo apt autoremove
<>
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) ...
<>
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,
<>
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.,
<>
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.
<>
[hidden email]:~$ 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
<>
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]
<>
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
<>
E: Failed to fetch http://ubuntu.mirror.neology.co.za/ubuntu/dists/xenial-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
<>

--
Our preferred address is
[hidden email]
Mobile   +2783 588 0028

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Snap tutorial crashed my repositories

Ralf Mardorf-2
On Fri, 2018-08-10 at 08:09 +0200, Charles IRONS wrote:
> Maybe the removal disabled the connection??

Hi,

no, it doesn't.

> 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]

If I click http://ubuntu.mirror.neology.co.za/ubuntu/pool/main/s/snapd/snapd_2.33.1ubuntu2_amd64.deb
the first possible reason mentioned by the Pale Moon browser, as well as
by the Firefox browser is "The site could be temporarily unavailable or
too busy. Try again in a few moments.

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

You indeed need to run 'sudo apt update' or 'suso apt-get update', take
a look at

[weremouse@moonstudio ~]$ lsb_release -c
Codename: xenial
[weremouse@moonstudio ~]$ apt list -a snapd
Listing... Done
snapd/xenial-updates,now 2.34.2 amd64 [installed]
snapd/xenial 2.0.2 amd64

The current version is _not_ 2.33.1ubuntu2 it is 2.34.2. However, the
culprit actually is that http://ubuntu.mirror.neology.co.za/ is not
accessible, so running 'sudo apt update' or 'suso apt-get update' won't
help. You either need to be patient and wait that the mirror might get
accessible again, or try using another mirror.

> E:Failed to fetch http://ubuntu.mirror.neology.co.za/ubuntu/dists/xenial-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]
> <>
> E:Some index files failed to download. They have been ignored, or old ones used instead.
>
> 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]
>
> E: Failed to fetch http://ubuntu.mirror.neology.co.za/ubuntu/dists/xenial-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.

Those are all error messages you posted, so use another mirror.

[weremouse@moonstudio ~]$ sudo apt update -qq
All packages are up to date.
[weremouse@moonstudio ~]$ sudo apt install --reinstall snapd
[snip]
Get:1 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 snapd amd64 2.34.2 [14.2 MB]
Fetched 14.2 MB in 7s (1,890 kB/s)                                                                                                                                                            
(Reading database ... 236051 files and directories currently installed.)
Preparing to unpack .../snapd_2.34.2_amd64.deb ...
Unpacking snapd (2.34.2) over (2.34.2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up snapd (2.34.2) ...
[snip]

Switching to another mirror could be done by several ways, see
https://www.google.de/search?source=hp&ei=_TRtW5FCitXAAualk-AK&q=ubuntu+change+repository+mirror&oq=ubuntu+change+repository+mirror&gs_l=psy-ab.3..0l2.999.7821.0.8187.35.17.2.16.17.0.74.1087.17.17.0....0...1c.1.64.psy-ab..0.35.1213...0i22i30k1.0.-XG3MwFrjPA

Regards,
Ralf



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Snap tutorial crashed my repositories

Ralf Mardorf-2
Reply | Threaded
Open this post in threaded view
|

Re: Snap tutorial crashed my repositories

Ralf Mardorf-2
On Fri, 2018-08-10 at 09:01 +0200, Ralf Mardorf wrote:
> PS:
>
> Even the evil Google sometimes could be a friend, see
>
> https://www.google.de/search?source=hp&ei=LDdtW6rYHJKlwQKe5ILwCA&q=ubuntu+upgrade+fails+connect+%28101%3A+Network+is+unreachable%29&oq=ubuntu+upgrade+fails+connect+%28101%3A+Network+is+unreachable%29&gs_l=psy-ab.3..33i22i29i30k1.979.6097.0.6445.22.13.0.9.9.0.73.807.13.13.0....0...1c.1.64.psy-ab..0.22.883...0j0i22i30k1.0.auqw15u7tt8

PPS:

From your original message:

> chas@Charles-PC:~$ sudo apt install snapd
> [snip]
> The following packages will be upgraded:
>   snapd

That's why the example Google search does use the term "upgrade" instead
of "install".



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Snap tutorial crashed my repositories

Oliver Grawert
In reply to this post by Charles Irons
hi,
Am Freitag, den 10.08.2018, 08:09 +0200 schrieb Charles IRONS:
> The following packages will be upgraded:
>   snapd
> 1 to upgrade, 0 to newly install, 0 to remove and 12 not to upgrade.

you already have it installed ... 

try:

snap version

..in a terminal, it should show you the version in use (also note that
it isnt *that* important to keep the deb of snapd updated since it
updates itself from the core snap once this is installed (core gets
installed alongside the very first snap you will install)).

ciao
        oli
--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Snap tutorial crashed my repositories

Liam Proven
In reply to this post by Charles Irons
On Fri, 10 Aug 2018 at 08:11, Charles IRONS <[hidden email]> wrote:

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

Change your mirror server.

https://www.unixmen.com/find-fastest-mirror-debian-derivatives/

Then do:

sudo apt clean
sudo apt update
sudo apt full-upgrade -y

Assuming it all works:

sudo apt clean
sudo apt purge
sudo apt autoremove


--
Liam Proven - Profile: https://about.me/liamproven
Email: [hidden email] - Google Mail/Hangouts/Plus: [hidden email]
Twitter/Facebook/Flickr: lproven - Skype/LinkedIn: liamproven
UK: +44 7939-087884 - ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users