Snap tutorial crashed my repositories

classic Classic list List threaded Threaded
14 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
Reply | Threaded
Open this post in threaded view
|

How do I fix my repositories?

Charles Irons
In reply to this post by Charles Irons
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 :


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!!
*************************************

[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
<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?
[hidden email]:~$ 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) ...
<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>
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>
[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
<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/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
<snip>
******************************
--
My 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: How do I fix my repositories?

Ralf Mardorf-2
On Mon, 2018-08-20 at 21:43 +0200, Charles IRONS wrote:
> http://ubuntu.mirror.neology.co.za/ubuntu

It's strange that removing the packages takes that long, but the issue
isn't related to the removal. This mirror is unavailable, chose another
mirror.

https://linuxconfig.org/how-to-select-the-fastest-apt-mirror-on-ubuntu-linux



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

Charles Irons
In reply to this post by Liam Proven
Hello Liam Proven & others

Thanks. I have just discovered ubuntu-users again and read your replies to my issue.

I have used the last advice from Liam and saved the output because there were some warnings. Please check those marked with ???????????? 

I am keen to upgrade to 18.04.1 but want to be sure 16.04 is fixed first.

Thanks for helping an old retired end user.
--
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

Liam Proven fixed repositories? (19K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Fixed my message options

Charles Irons
Hello Liam Proven & others

I hope I have fixed my message options. Somehow my subscription was disabled.
--
Our preferred address is
[hidden email]
Mobile   +2783 588 0028

-------- Forwarded Message --------
From: Charles IRONS <[hidden email]>
Subject: Re: Snap tutorial crashed my repositories
Date: Wed, 03 Oct 2018 12:04:53 +0200

Hello Liam Proven & others

Thanks. I have just discovered ubuntu-users again and read your replies to my issue.

I have used the last advice from Liam and saved the output because there were some warnings. Please check those marked with ???????????? 

I am keen to upgrade to 18.04.1 but want to be sure 16.04 is fixed first.

Thanks for helping an old retired end user.
--
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

Liam Proven fixed repositories? (19K) 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 Wed, 3 Oct 2018 at 12:06, Charles IRONS <[hidden email]> wrote:

>
> Hello Liam Proven & others
>
> Thanks. I have just discovered ubuntu-users again and read your replies to my issue.
>
> I have used the last advice from Liam and saved the output because there were some warnings. Please check those marked with ????????????
>
> I am keen to upgrade to 18.04.1 but want to be sure 16.04 is fixed first.
>
> Thanks for helping an old retired end user.

Best not to send attachments to mailing lists, by the way. Most block
them. I'm surprised it worked.

The error is what it says. You have some repositories listed more than
once in your repository config files.

You need to go through

/etc/apt/sources.list

and all the files in the folder

/etc/apt/sources.list.d

... and check for duplicate lines. If there are any, comment out all
but one by inserting a # at the begi


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Snap tutorial crashed my repositories

Liam Proven
On Mon, 8 Oct 2018 at 16:42, Liam Proven <[hidden email]> wrote:
> ... and check for duplicate lines. If there are any, comment out all but one by inserting a # at the begi

Sorry. Caught out by a new Gmail feature.

Insert a # at the beginning of any duplicate lines to disable them.
Leave just one un-commented.

--
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
Reply | Threaded
Open this post in threaded view
|

Re: Snap tutorial crashed my repositories

Charles Irons
In reply to this post by Liam Proven

On Mon, 2018-10-08 at 16:42 +0200, Liam Proven wrote:
On Wed, 3 Oct 2018 at 12:06, Charles IRONS <[hidden email]> wrote:
Hello Liam Proven & others Thanks. I have just discovered ubuntu-users again and read your replies to my issue. I have used the last advice from Liam and saved the output because there were some warnings. Please check those marked with ???????????? I am keen to upgrade to 18.04.1 but want to be sure 16.04 is fixed first. Thanks for helping an old retired end user.
Best not to send attachments to mailing lists, by the way. Most block them. I'm surprised it worked. The error is what it says. You have some repositories listed more than once in your repository config files. You need to go through /etc/apt/sources.list and all the files in the folder /etc/apt/sources.list.d
... and check for duplicate lines. If there are any, comment out all
but one by inserting a # at the begi

Hello again Liam

I am still lost. When I read /etc/apt/sources.list ,  I don't know what may be a duplicate. For example;

deb-src http://mirror.wiru.co.za/ubuntu/ xenial universe

Is the second line a duplicate? If not, there are no actual duplicates in /etc/apt/sources.list

Similarly, files in /etc/apt/sources.list.d  :
opera-stable.list, opera-stable.list.distUpgrade, opera-stable.list.save, xenial-partner.list and xenial-partner.list.save
do show what look identical except that they seem to be for different purposes..

> deb https://deb.opera.com/opera-stable/ stable non-free #Opera
> Browser (final releases) disabled on upgrade to xenial
> deb https://deb.opera.com/opera-stable/ stable non-free #Opera
> Browser (final releases)
> deb https://deb.opera.com/opera-stable/ stable non-free #Opera
> Browser (final releases) disabled on upgrade to xenial
> deb http://archive.canonical.com/ubuntu xenial partner
> deb http://archive.canonical.com/ubuntu xenial partner

I hope all this is correctly copied for your scrutiny.
Thanks again for your advice.



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

Liam Proven
On Tue, 9 Oct 2018 at 15:28, Charles IRONS <[hidden email]> wrote:

>
> Hello again Liam
>
> I am still lost. When I read /etc/apt/sources.list ,  I don't know what may be a duplicate. For example;
>
> deb http://mirror.wiru.co.za/ubuntu/ xenial universe
> deb-src http://mirror.wiru.co.za/ubuntu/ xenial universe
>
> Is the second line a duplicate? If not, there are no actual duplicates in /etc/apt/sources.list

No, those are not duplicates. The "-src" bit is significant. It means
the 1st line is for binary packages (i.e. compiled programs) and the
2nd line is for _source_ packages (the raw program code the binaries
are built from).

> Similarly, files in /etc/apt/sources.list.d  :
> opera-stable.list, opera-stable.list.distUpgrade, opera-stable.list.save, xenial-partner.list and xenial-partner.list.save
> do show what look identical except that they seem to be for different purposes..
>
> > deb https://deb.opera.com/opera-stable/ stable non-free #Opera
> > Browser (final releases) disabled on upgrade to xenial
>
> > deb https://deb.opera.com/opera-stable/ stable non-free #Opera
> > Browser (final releases)
>
> > deb https://deb.opera.com/opera-stable/ stable non-free #Opera
> > Browser (final releases) disabled on upgrade to xenial

Those 3 _are_ duplicates.

The actual lines are the same, so those are all equivalent to each
other. You only need one line. It doesn't matter hugely which one(s)
you remove, but insert a # at the beginning of any one, save the file,
and try again.

>
> > deb http://archive.canonical.com/ubuntu xenial partner
>
> > deb http://archive.canonical.com/ubuntu xenial partner

Ditto -- those are duplicates and will cause the errors you are getting.

Note, the error messages you highlighted with  question marks in your
previous email does explicitly tell you which files and even which
line numbers contain the duplicates.



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