Error message ( in part ) error opening the cache E var/lib/apt/lists

Asked by Bill Davies

Hello , I am running 16.04 and it is not doing software updates anymore , I get the stop sign in the top bar and a message that says

error opening the cache E can not open var/lib/apt/lists ubuntu dists xenial backports inrelease fopen ( 13 permission denied ) could not be parsed

I am a complete novice.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the full output that you receive for the following commands (to be executed in a terminal window):

uname -a
lsb_release -crid
sudo apt update
ls -l /var/lib/apt/lists/*xenial-backports*

Revision history for this message
Bill Davies (bedebill) said :
#2

Thanks Manfred , after those commands it is saying - I guess I press Y and see what happens ?

Ign:1 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial InRelease
Err:2 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release
  Please use apt-cdrom to allow APT to recognise this CD-ROM. 'apt-get update' cannot be used to add new CD-ROMs
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:5 http://gb.archive.ubuntu.com/ubuntu xenial InRelease
Hit:6 http://archive.canonical.com/ubuntu xenial InRelease
Get:7 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB]
N: Repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' changed its 'Version' value from '16.04' to '18.04'
E: Repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' changed its 'Suite' value from 'xenial-updates' to 'bionic-updates'
E: Repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' changed its 'Codename' value from 'xenial' to 'bionic'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N]

Revision history for this message
Bill Davies (bedebill) said :
#3

Manfred I went ahead and installed it and the last part of the script said this

Get:56 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main Sources [348 kB]
Get:57 http://archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en [12.7 kB]
Get:58 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 DEP-11 Metadata [828 B]
Get:59 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted amd64 Packages [16.2 kB]
N: Repository 'http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease' changed its 'Version' value from '18.04' to '16.04'
E: Repository 'http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease' changed its 'Suite' value from 'bionic-security' to 'xenial-backports'
E: Repository 'http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease' changed its 'Codename' value from 'bionic' to 'xenial'
E: Repository 'http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease' changed its default priority for apt_preferences(5) from 500 to 100.
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Get:60 http://gb.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [7,508 B]
Get:61 http://gb.archive.ubuntu.com/ubuntu xenial-backports/main Sources [4,848 B]
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Conflicting distribution: http://archive.ubuntu.com/ubuntu bionic InRelease (expected bionic but got xenial)
bill@bill-Satellite-Pro-L300:~$

Revision history for this message
Bill Davies (bedebill) said :
#4

Manfred good news the software updater has asked me to download 105 MBs of software so it might be fixed ?

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

There are some errors in the configuration. They should be rather easy to solve, but we need more information.

Please provide the output of the commands

uname -a
lsb_release -crid
cat -n /etc/apt/sources.list
grep '^deb' /etc/apt/sources.list.d/*.list
apt-cache policy

Revision history for this message
Bill Davies (bedebill) said :
#6

This morning I ran the soft ware updater and it gave the message , repository could not be downloaded ( please check your internet) , I then clicked OK and it then said 'There are no software updates for this computer' . This it was doing for the last few weeks .

Revision history for this message
Bill Davies (bedebill) said :
#7

Morning Manfred thanks for helping , it is now saying this

bill@bill-Satellite-Pro-L300:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
bill@bill-Satellite-Pro-L300:~$ cat -n /etc/apt/sources.list
     1 deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
     6 deb-src http://archive.ubuntu.com/ubuntu/ bionic universe main multiverse restricted #Added by software-properties
     7 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
     8
     9 ## Major bug fix updates produced after the final release of the
    10 ## distribution.
    11 deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    12 deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe main multiverse restricted #Added by software-properties
    13 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    14
    15 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    16 ## team, and may not be under a free licence. Please satisfy yourself as to
    17 ## your rights to use the software. Also, please note that software in
    18 ## universe WILL NOT receive any review or updates from the Ubuntu security
    19 ## team.
    20 deb http://archive.ubuntu.com/ubuntu/ bionic universe
    21 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial universe
    22 deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
    23 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates universe
    24
    25 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    26 ## team, and may not be under a free licence. Please satisfy yourself as to
    27 ## your rights to use the software. Also, please note that software in
    28 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    29 ## security team.
    30 deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
    31 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse
    32 deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    33 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    34
    35 ## N.B. software from this repository may not have been tested as
    36 ## extensively as that contained in the main release, although it includes
    37 ## newer versions of some applications which may provide useful features.
    38 ## Also, please note that software in backports WILL NOT receive any review
    39 ## or updates from the Ubuntu security team.
    40 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    41
    42 ## Uncomment the following two lines to add software from Canonical's
    43 ## 'partner' repository.
    44 ## This software is not part of Ubuntu, but is offered by Canonical and the
    45 ## respective vendors as a service to Ubuntu users.
    46 deb http://archive.canonical.com/ubuntu xenial partner
    47 deb-src http://archive.canonical.com/ubuntu xenial partner
    48
    49 deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted
    50 deb-src http://archive.ubuntu.com/ubuntu/ bionic-security universe main multiverse restricted #Added by software-properties
    51 deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    52 deb http://archive.ubuntu.com/ubuntu/ bionic-security universe
    53 deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    54 deb http://archive.ubuntu.com/ubuntu/ bionic-security multiverse
    55 deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
    56 deb http://archive.ubuntu.com/ubuntu/ bionic-backports universe multiverse main restricted
    57 deb http://archive.ubuntu.com/ubuntu/ bionic-proposed main multiverse universe restricted
bill@bill-Satellite-Pro-L300:~$ grep '^deb' /etc/apt/sources.list.d/*.list
grep: /etc/apt/sources.list.d/*.list: No such file or directory
bill@bill-Satellite-Pro-L300:~$ apt-cache policy

Revision history for this message
Bill Davies (bedebill) said :
#8

It is weird as that is saying 18.04 but I am running on 16.04

Revision history for this message
Bill Davies (bedebill) said :
#9

Sorry just checked it is Ubuntu 18.04.4 LTS I am running .

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

Then all the xenial lines in your sources need changing to bionic. Did you "upgrade" by manually editing the lines then running upgrades?

Revision history for this message
Bill Davies (bedebill) said :
#11

No I didn't , so in that script above I need to manually change all the xenial words to bionic ? I have to go out soon so may not reply untill this PM , UK time.

Revision history for this message
Bill Davies (bedebill) said :
#12

This bit sounds a bit worrying , should I be worried ?

  25 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    26 ## team, and may not be under a free licence. Please satisfy yourself as to
    27 ## your rights to use the software. Also, please note that software in
    28 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    29 ## security team.
    30 deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
    31 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse
    32 deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    33 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    34
    35 ## N.B. software from this repository may not have been tested as
    36 ## extensively as that contained in the main release, although it includes
    37 ## newer versions of some applications which may provide useful features.
    38 ## Also, please note that software in backports WILL NOT receive any review
    39 ## or updates from the Ubuntu security team.
    40 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#13

No, that's fine. Just change:
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

To:
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
#deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
#deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

and change:
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe

to:
#deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe

Save the new file, close your text editor and run:

sudo apt update

Is it smooth?

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

One additional (rather important) change to be done:

Comment out the first line ("deb cdrom:[Ubuntu 16.04 LTS ...")
by putting a comment indicator ("#") to the beginning of the line making it
# deb cdrom:[Ubuntu 16.04 LTS ...

You know how to make all these changes?
Open a terminal wndow and issue the command

sudo gedit /etc/apt/sources.list

Revision history for this message
Bill Davies (bedebill) said :
#15

Thanksyou Manfred and Andrew for responding I have entered sudo gedit /etc/apt/sources.list and this came up ,

deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb-src http://archive.ubuntu.com/ubuntu/ bionic universe main multiverse restricted #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe main multiverse restricted #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ bionic universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted
deb-src http://archive.ubuntu.com/ubuntu/ bionic-security universe main multiverse restricted #Added by software-properties
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://archive.ubuntu.com/ubuntu/ bionic-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports universe multiverse main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-proposed main multiverse universe restricted

Revision history for this message
Bill Davies (bedebill) said :
#16

I added the # and entered it and then this came up

bill@bill-Satellite-Pro-L300:~$ deb http://archive.ubuntu.com/ubuntu/ bionic-backports universe multiverse main restricted

Command 'deb' not found, did you mean:

  command 'dub' from snap dub (1.19.0)
  command 'den' from snap den (1.2.0-0)
  command 'dex' from deb dex
  command 'debi' from deb devscripts
  command 'derb' from deb icu-devtools
  command 'dep' from deb go-dep
  command 'deb3' from deb quilt
  command 'dab' from deb bsdgames
  command 'dub' from deb dub
  command 'xdeb' from deb xdeb
  command 'edb' from deb edb-debugger
  command 'debc' from deb devscripts

See 'snap info <snapname>' for additional versions.

bill@bill-Satellite-Pro-L300:~$ deb http://archive.ubuntu.com/ubuntu/ bionic-proposed main multiverse universe restricted

Revision history for this message
Bill Davies (bedebill) said :
#17

That was not all of it just the end bit

Revision history for this message
Manfred Hampl (m-hampl) said :
#18

I do not know what you did, but apparently something went wrong.
Try again:

Open a terminal windows and issue the command

sudo gedit /etc/apt/sources.list

This will most probably ask for your password (as confirmation for an administrative action) and will then open a editor in a separate window, with the sources.list configuration file loaded.

In that editor window you should be able to modify the file, just like any word processing program.

Put a '#' in front of the first line
replace all occurrences of "xenial" by "bionic"
delete the very last line (containing "bionic-proposed")
Then save the file and close the editor.

Finally issue the command

sudo apt update

and report the results.

Revision history for this message
Bill Davies (bedebill) said :
#19

I have tried that and got this

bill@bill-Satellite-Pro-L300:~$ sudo apt update #deb cdrom:[Ubuntu 16.04 LTS _bionic Xerus_ - Release amd64 (20160420.1)]/ bionic main restricted
[sudo] password for bill:
Sorry, try again.
[sudo] password for bill:
Ign:1 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial InRelease
Err:2 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release
  Please use apt-cdrom to allow APT to recognise this CD-ROM. 'apt-get update' cannot be used to add new CD-ROMs
Hit:3 http://gb.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:8 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Hit:9 http://archive.canonical.com/ubuntu xenial InRelease
Hit:10 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:11 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:12 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease
Ign:13 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 DEP-11 Metadata
Ign:13 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 DEP-11 Metadata
Err:13 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 DEP-11 Metadata
  404 Not Found [IP: 2001:67c:1360:8001::24 80]
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Conflicting distribution: http://archive.ubuntu.com/ubuntu bionic InRelease (expected bionic but got xenial)
bill@bill-Satellite-Pro-L300:~$

Revision history for this message
Bill Davies (bedebill) said :
#20

Thte software updater just asked me to downl;oad 6 MBs , doing that now .

Revision history for this message
Bill Davies (bedebill) said :
#21

I have restarted the laptop and ran the soft ware updater and it gave the message , repository could not be downloaded ( please check your internet) , I then clicked OK and it then said 'There are no software updates for this computer' . So no improvement yet.

this is the re-written code I used

 #deb cdrom:[Ubuntu 16.04 LTS _bionic Xerus_ - Release amd64 (20160420.1)]/ bionic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb-src http://archive.ubuntu.com/ubuntu/ bionic universe main multiverse restricted #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe main multiverse restricted #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ bionic universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu bionic partner
deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted
deb-src http://archive.ubuntu.com/ubuntu/ bionic-security universe main multiverse restricted #Added by software-properties
deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-security universe
deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://archive.ubuntu.com/ubuntu/ bionic-security multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports universe multiverse main restricted

So I ran that and then put in sudo apt update

I suspect that it's the '' (expected bionic but got xenial)'' that is the fly in the ointment.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#22

If you comment out the restricted repository does it help?

Revision history for this message
Bill Davies (bedebill) said :
#23

By that you mean put # in front of say for EG

#deb http://archive.ubuntu.com/ubuntu/ bionic-backports universe multiverse main restricted

all the way through ?

Revision history for this message
Bill Davies (bedebill) said :
#24

I entered this

 #deb cdrom:[Ubuntu 16.04 LTS _bionic Xerus_ - Release amd64 (20160420.1)]/ bionic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
#deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
#deb-src http://archive.ubuntu.com/ubuntu/ bionic universe main multiverse restricted #Added by software-properties
#deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
#deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
#deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe main multiverse restricted #Added by software-properties
#deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ bionic universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu bionic partner
deb-src http://archive.canonical.com/ubuntu bionic partner

#deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted
#deb-src http://archive.ubuntu.com/ubuntu/ bionic-security universe main multiverse restricted #Added by software-properties
#deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-security universe
deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://archive.ubuntu.com/ubuntu/ bionic-security multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
#deb http://archive.ubuntu.com/ubuntu/ bionic-backports universe multiverse main restricted

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#25

Looks OK. Is it smooth?

Revision history for this message
Bill Davies (bedebill) said :
#26

And it spat out this , haven't tried a software upgrade yet .

bill@bill-Satellite-Pro-L300:~$ #deb cdrom:[Ubuntu 16.04 LTS _bionic Xerus_ - Release amd64 (20160420.1)]/ bionic main restricted
bill@bill-Satellite-Pro-L300:~$
bill@bill-Satellite-Pro-L300:~$ # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
bill@bill-Satellite-Pro-L300:~$ # newer versions of the distribution.
bill@bill-Satellite-Pro-L300:~$ #deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
bill@bill-Satellite-Pro-L300:~$ #deb-src http://archive.ubuntu.com/ubuntu/ bionic universe main multiverse restricted #Added by software-properties
bill@bill-Satellite-Pro-L300:~$ #deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted
bill@bill-Satellite-Pro-L300:~$
bill@bill-Satellite-Pro-L300:~$ ## Major bug fix updates produced after the final release of the
bill@bill-Satellite-Pro-L300:~$ ## distribution.
bill@bill-Satellite-Pro-L300:~$ #deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
bill@bill-Satellite-Pro-L300:~$ #deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe main multiverse restricted #Added by software-properties
bill@bill-Satellite-Pro-L300:~$ #deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
bill@bill-Satellite-Pro-L300:~$
bill@bill-Satellite-Pro-L300:~$ ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
bill@bill-Satellite-Pro-L300:~$ ## team, and may not be under a free licence. Please satisfy yourself as to
bill@bill-Satellite-Pro-L300:~$ ## your rights to use the software. Also, please note that software in
bill@bill-Satellite-Pro-L300:~$ ## universe WILL NOT receive any review or updates from the Ubuntu security
bill@bill-Satellite-Pro-L300:~$ ## team.
bill@bill-Satellite-Pro-L300:~$ deb http://archive.ubuntu.com/ubuntu/ bionic universe

Command 'deb' not found, did you mean:

  command 'dub' from snap dub (1.19.0)
  command 'den' from snap den (1.2.0-0)
  command 'dep' from deb go-dep
  command 'debc' from deb devscripts
  command 'dub' from deb dub
  command 'edb' from deb edb-debugger
  command 'xdeb' from deb xdeb
  command 'derb' from deb icu-devtools
  command 'dab' from deb bsdgames
  command 'deb3' from deb quilt
  command 'dex' from deb dex
  command 'debi' from deb devscripts

See 'snap info <snapname>' for additional versions.

bill@bill-Satellite-Pro-L300:~$ deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic universe
deb-src: command not found
bill@bill-Satellite-Pro-L300:~$ deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe

Command 'deb' not found, did you mean:

  command 'dub' from snap dub (1.19.0)
  command 'den' from snap den (1.2.0-0)
  command 'deb3' from deb quilt
  command 'edb' from deb edb-debugger
  command 'debc' from deb devscripts
  command 'dab' from deb bsdgames
  command 'dep' from deb go-dep
  command 'xdeb' from deb xdeb
  command 'derb' from deb icu-devtools
  command 'dub' from deb dub
  command 'dex' from deb dex
  command 'debi' from deb devscripts

See 'snap info <snapname>' for additional versions.

bill@bill-Satellite-Pro-L300:~$ deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-src: command not found
bill@bill-Satellite-Pro-L300:~$
bill@bill-Satellite-Pro-L300:~$ ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
bill@bill-Satellite-Pro-L300:~$ ## team, and may not be under a free licence. Please satisfy yourself as to
bill@bill-Satellite-Pro-L300:~$ ## your rights to use the software. Also, please note that software in
bill@bill-Satellite-Pro-L300:~$ ## multiverse WILL NOT receive any review or updates from the Ubuntu
bill@bill-Satellite-Pro-L300:~$ ## security team.
bill@bill-Satellite-Pro-L300:~$ deb http://archive.ubuntu.com/ubuntu/ bionic multiverse

Command 'deb' not found, did you mean:

  command 'den' from snap den (1.2.0-0)
  command 'dub' from snap dub (1.19.0)
  command 'dex' from deb dex
  command 'debc' from deb devscripts
  command 'dep' from deb go-dep
  command 'debi' from deb devscripts
  command 'edb' from deb edb-debugger
  command 'deb3' from deb quilt
  command 'dab' from deb bsdgames
  command 'derb' from deb icu-devtools
  command 'xdeb' from deb xdeb
  command 'dub' from deb dub

See 'snap info <snapname>' for additional versions.

bill@bill-Satellite-Pro-L300:~$ deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic multiverse
deb-src: command not found
bill@bill-Satellite-Pro-L300:~$ deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse

Command 'deb' not found, did you mean:

  command 'den' from snap den (1.2.0-0)
  command 'dub' from snap dub (1.19.0)
  command 'debc' from deb devscripts
  command 'debi' from deb devscripts
  command 'xdeb' from deb xdeb
  command 'edb' from deb edb-debugger
  command 'derb' from deb icu-devtools
  command 'deb3' from deb quilt
  command 'dub' from deb dub
  command 'dex' from deb dex
  command 'dep' from deb go-dep
  command 'dab' from deb bsdgames

See 'snap info <snapname>' for additional versions.

bill@bill-Satellite-Pro-L300:~$ deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src: command not found
bill@bill-Satellite-Pro-L300:~$
bill@bill-Satellite-Pro-L300:~$ ## N.B. software from this repository may not have been tested as
bill@bill-Satellite-Pro-L300:~$ ## extensively as that contained in the main release, although it includes
bill@bill-Satellite-Pro-L300:~$ ## newer versions of some applications which may provide useful features.
bill@bill-Satellite-Pro-L300:~$ ## Also, please note that software in backports WILL NOT receive any review
bill@bill-Satellite-Pro-L300:~$ ## or updates from the Ubuntu security team.
bill@bill-Satellite-Pro-L300:~$ deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src: command not found
bill@bill-Satellite-Pro-L300:~$
bill@bill-Satellite-Pro-L300:~$ ## Uncomment the following two lines to add software from Canonical's
bill@bill-Satellite-Pro-L300:~$ ## 'partner' repository.
bill@bill-Satellite-Pro-L300:~$ ## This software is not part of Ubuntu, but is offered by Canonical and the
bill@bill-Satellite-Pro-L300:~$ ## respective vendors as a service to Ubuntu users.
bill@bill-Satellite-Pro-L300:~$ deb http://archive.canonical.com/ubuntu bionic partner

Command 'deb' not found, did you mean:

  command 'dub' from snap dub (1.19.0)
  command 'den' from snap den (1.2.0-0)
  command 'xdeb' from deb xdeb
  command 'debi' from deb devscripts
  command 'dex' from deb dex
  command 'debc' from deb devscripts
  command 'dep' from deb go-dep
  command 'dab' from deb bsdgames
  command 'derb' from deb icu-devtools
  command 'dub' from deb dub
  command 'edb' from deb edb-debugger
  command 'deb3' from deb quilt

See 'snap info <snapname>' for additional versions.

bill@bill-Satellite-Pro-L300:~$ deb-src http://archive.canonical.com/ubuntu bionic partner
deb-src: command not found
bill@bill-Satellite-Pro-L300:~$
bill@bill-Satellite-Pro-L300:~$ #deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted
bill@bill-Satellite-Pro-L300:~$ #deb-src http://archive.ubuntu.com/ubuntu/ bionic-security universe main multiverse restricted #Added by software-properties
bill@bill-Satellite-Pro-L300:~$ #deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
bill@bill-Satellite-Pro-L300:~$ deb http://archive.ubuntu.com/ubuntu/ bionic-security universe

Command 'deb' not found, did you mean:

  command 'den' from snap den (1.2.0-0)
  command 'dub' from snap dub (1.19.0)
  command 'debc' from deb devscripts
  command 'dub' from deb dub
  command 'dex' from deb dex
  command 'deb3' from deb quilt
  command 'dep' from deb go-dep
  command 'xdeb' from deb xdeb
  command 'debi' from deb devscripts
  command 'derb' from deb icu-devtools
  command 'edb' from deb edb-debugger
  command 'dab' from deb bsdgames

See 'snap info <snapname>' for additional versions.

bill@bill-Satellite-Pro-L300:~$ deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb-src: command not found
bill@bill-Satellite-Pro-L300:~$ deb http://archive.ubuntu.com/ubuntu/ bionic-security multiverse

Command 'deb' not found, did you mean:

  command 'dub' from snap dub (1.19.0)
  command 'den' from snap den (1.2.0-0)
  command 'debi' from deb devscripts
  command 'xdeb' from deb xdeb
  command 'dep' from deb go-dep
  command 'dub' from deb dub
  command 'deb3' from deb quilt
  command 'dab' from deb bsdgames
  command 'derb' from deb icu-devtools
  command 'debc' from deb devscripts
  command 'edb' from deb edb-debugger
  command 'dex' from deb dex

See 'snap info <snapname>' for additional versions.

bill@bill-Satellite-Pro-L300:~$ deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
deb-src: command not found
bill@bill-Satellite-Pro-L300:~$ #deb http://archive.ubuntu.com/ubuntu/ bionic-backports universe multiverse main restricted
bill@bill-Satellite-Pro-L300:~$

Revision history for this message
Bill Davies (bedebill) said :
#27

Software updater still saying failed to download repository

Revision history for this message
Manfred Hampl (m-hampl) said :
#28

It seems that you again made some wrong keystrokes.

I suggest to do some clean-up action first and then start again.

Issue the commands

sudo rm -v /var/lib/apt/lists/partial/*
sudo rm -v /var/lib/apt/lists/*
sudo apt update
cat -n /etc/apt/sources.list
ls -l /etc/apt/sources.list.d
cat -n /etc/apt/preferences
ls -l /etc/apt/preferences.d

and copy/paste the full output into this question document that we can see the results.

Revision history for this message
Bill Davies (bedebill) said :
#29

Hello Manfred , I just C&P this

sudo rm -v /var/lib/apt/lists/partial/*
sudo rm -v /var/lib/apt/lists/*
sudo apt update
cat -n /etc/apt/sources.list
ls -l /etc/apt/sources.list.d
cat -n /etc/apt/preferences
ls -l /etc/apt/preferences.d

and it spat out this

bill@bill-Satellite-Pro-L300:~$ sudo rm -v /var/lib/apt/lists/partial/*
[sudo] password for bill:
Sorry, try again.
[sudo] password for bill:
rm: cannot remove '/var/lib/apt/lists/partial/*': No such file or directory
bill@bill-Satellite-Pro-L300:~$

Maybe you meant issue one command at a time ?

Revision history for this message
Bill Davies (bedebill) said :
#30

Just tried the 1st line only and it came back with this

bill@bill-Satellite-Pro-L300:~$ sudo rm -v /var/lib/apt/lists/partial/*
rm: cannot remove '/var/lib/apt/lists/partial/*': No such file or directory
bill@bill-Satellite-Pro-L300:~$

Thanks for persevering with this for me , appreciated.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#31

Yeah just keep going. You can even copy and paste all the commands in one hit

Revision history for this message
Bill Davies (bedebill) said :
#32

Since the 1st two lines of commands ref the var lists that are not in the directory I C&P the last 5 lines and this came back

 password for bill:
Ign:1 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial InRelease
Err:2 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release
  Please use apt-cdrom to allow APT to recognise this CD-ROM. 'apt-get update' cannot be used to add new CD-ROMs
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:5 http://gb.archive.ubuntu.com/ubuntu xenial InRelease
Get:6 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:8 http://archive.canonical.com/ubuntu xenial InRelease
Get:9 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:10 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB]
Ign:13 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 DEP-11 Metadata
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [295 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [285 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [214 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:18 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [48.9 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [56.0 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Ign:13 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 DEP-11 Metadata
Get:21 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9,288 B]
Get:22 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 DEP-11 Metadata [828 B]
Err:13 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 DEP-11 Metadata
  404 Not Found [IP: 2001:67c:1360:8001::24 80]
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Conflicting distribution: http://archive.ubuntu.com/ubuntu bionic InRelease (expected bionic but got xenial)
bill@bill-Satellite-Pro-L300:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#33

That output isn't complete!

Please repeat all of them, one by one, even if some of them end with error

Revision history for this message
Bill Davies (bedebill) said :
#34

I have gone through all of them one by one and this is the print out

sudo rm -v /var/lib/apt/lists/partial/* 1st line gives -

bill@bill-Satellite-Pro-L300:~$ sudo rm -v /var/lib/apt/lists/partial/*
[sudo] password for bill:
rm: cannot remove '/var/lib/apt/lists/partial/*': No such file or directory
bill@bill-Satellite-Pro-L300:~$

-----------------------------------------------------------------------------------------------------------------------------------

  sudo rm -v /var/lib/apt/lists/* 2nd line gives -

bill@bill-Satellite-Pro-L300:~$ sudo rm -v /var/lib/apt/lists/*
removed '/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_xenial_InRelease'
removed '/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_xenial_partner_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_xenial_partner_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_xenial_partner_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_xenial_partner_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_InRelease'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_main_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_main_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_main_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_main_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_Release'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_Release.gpg'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InRelease'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_main_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_main_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_main_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_main_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_main_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_main_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_main_i18n_Translation-en%5fGB'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_main_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_i18n_Translation-en%5fGB'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_InRelease'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_main_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_main_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_main_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_main_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_main_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_main_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_main_i18n_Translation-en%5fGB'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_multiverse_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_multiverse_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_multiverse_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_multiverse_i18n_Translation-en%5fGB'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_restricted_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_restricted_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_restricted_i18n_Translation-en%5fGB'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_universe_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_universe_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_universe_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_universe_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_universe_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_universe_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-proposed_universe_i18n_Translation-en%5fGB'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_Release'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_Release.gpg'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_restricted_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_restricted_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_restricted_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_restricted_i18n_Translation-en%5fGB'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_restricted_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_InRelease'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_main_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_main_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_main_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_main_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_main_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_main_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_main_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_multiverse_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_multiverse_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_multiverse_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_multiverse_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_multiverse_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_multiverse_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_multiverse_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_Release'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_Release.gpg'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_restricted_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_restricted_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_restricted_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_restricted_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_universe_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_universe_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_universe_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_universe_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_universe_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_universe_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-security_universe_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_i18n_Translation-en%5fGB'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_InRelease'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_main_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_main_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_main_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_main_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_main_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_main_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_main_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_Release'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_Release.gpg'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_restricted_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_restricted_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_restricted_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_restricted_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_source_Sources'
rm: cannot remove '/var/lib/apt/lists/auxfiles': Is a directory
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-backports_InRelease'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-backports_main_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-backports_Release'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-backports_Release.gpg'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-backports_universe_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial_InRelease'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial_main_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial_multiverse_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial_restricted_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial_universe_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_InRelease'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_main_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_multiverse_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_Release'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_Release.gpg'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_restricted_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_universe_source_Sources'
removed '/var/lib/apt/lists/lock'
rm: cannot remove '/var/lib/apt/lists/partial': Is a directory
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_InRelease'
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_main_source_Sources'
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_multiverse_source_Sources'
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_Release'
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_Release.gpg'
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_restricted_source_Sources'
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_universe_source_Sources'
bill@bill-Satellite-Pro-L300:~$

----------------------------------------------------------------------------------------------------------------------------------

sudo apt update 3rd line gives

removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_restricted_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_restricted_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_restricted_source_Sources'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_binary-amd64_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_binary-i386_Packages'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_dep11_Components-amd64.yml.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_dep11_icons-48x48.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_dep11_icons-64x64.tar.gz'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_i18n_Translation-en'
removed '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_source_Sources'
rm: cannot remove '/var/lib/apt/lists/auxfiles': Is a directory
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-backports_InRelease'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-backports_main_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-backports_Release'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-backports_Release.gpg'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-backports_universe_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial_InRelease'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial_main_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial_multiverse_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial_restricted_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial_universe_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_InRelease'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_main_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_multiverse_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_Release'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_Release.gpg'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_restricted_source_Sources'
removed '/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_universe_source_Sources'
removed '/var/lib/apt/lists/lock'
rm: cannot remove '/var/lib/apt/lists/partial': Is a directory
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_InRelease'
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_main_source_Sources'
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_multiverse_source_Sources'
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_Release'
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_Release.gpg'
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_restricted_source_Sources'
removed '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_universe_source_Sources'
bill@bill-Satellite-Pro-L300:~$ clear

bill@bill-Satellite-Pro-L300:~$ sudo apt update
Ign:1 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial InRelease
Err:2 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release
  Please use apt-cdrom to allow APT to recognise this CD-ROM. 'apt-get update' cannot be used to add new CD-ROMs
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:6 http://archive.canonical.com/ubuntu xenial InRelease [11.5 kB]
Get:7 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:8 http://archive.canonical.com/ubuntu xenial/partner Sources [2,388 B]
Get:9 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:10 http://archive.canonical.com/ubuntu xenial/partner i386 Packages [3,120 B]
Get:11 http://archive.canonical.com/ubuntu xenial/partner amd64 Packages [3,124 B]
Get:12 http://archive.canonical.com/ubuntu xenial/partner Translation-en [1,672 B]
Get:13 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,116 B]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [3,400 B]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [120 kB]
Get:16 http://gb.archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/main Sources [168 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic/universe Sources [9,051 kB]
Get:23 http://gb.archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]
Get:24 http://gb.archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Get:25 http://gb.archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
Get:26 http://gb.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [271 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic/multiverse Sources [181 kB]
Get:28 http://gb.archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [8,756 B]
Get:29 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main Sources [349 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic/main Sources [829 kB]
Get:31 http://gb.archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [2,536 B]
Get:32 http://gb.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [7,508 B]
Get:33 http://gb.archive.ubuntu.com/ubuntu xenial-backports/main Sources [4,848 B]
Get:34 http://archive.ubuntu.com/ubuntu bionic/restricted Sources [5,324 B]
Get:35 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,019 kB]
Get:36 http://archive.ubuntu.com/ubuntu bionic/main i386 Packages [1,007 kB]
Get:37 http://archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Get:38 http://archive.ubuntu.com/ubuntu bionic/main Translation-en_GB [432 kB]
Get:39 http://archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
Get:40 http://archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Get:41 http://archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
Get:42 http://archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [9,156 B]
Get:43 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9,184 B]
Get:44 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3,584 B]
Get:45 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-en_GB [2,072 B]
Get:46 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8,570 kB]
Get:47 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages [8,531 kB]
Get:48 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en_GB [4,118 kB]
Get:49 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4,941 kB]
Get:50 http://archive.ubuntu.com/ubuntu bionic/universe amd64 DEP-11 Metadata [3,287 kB]
Get:51 http://archive.ubuntu.com/ubuntu bionic/universe DEP-11 48x48 Icons [2,151 kB]
Get:52 http://archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8,420 kB]
Get:53 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:54 http://archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]
Get:55 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:56 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en_GB [82.1 kB]
Get:57 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49.7 kB]
Get:58 http://archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons [8,931 B]
Get:59 http://archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB]
Get:60 http://archive.ubuntu.com/ubuntu bionic-updates/universe Sources [287 kB]
Get:61 http://archive.ubuntu.com/ubuntu bionic-updates/main Sources [328 kB]
Get:62 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Sources [9,472 B]
Get:63 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Sources [7,328 B]
Get:64 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1,038 kB]
Get:65 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [726 kB]
Get:66 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [348 kB]
Get:67 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [295 kB]
Get:68 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [81.9 kB]
Get:69 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [157 kB]
Get:70 http://archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [11.0 kB]
Get:71 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [85.5 kB]
Get:72 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [18.8 kB]
Get:73 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1,028 kB]
Get:74 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,100 kB]
Get:75 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [342 kB]
Get:76 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [285 kB]
Get:77 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [214 kB]
Get:78 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [464 kB]
Get:79 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [8,512 B]
Get:80 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [19.4 kB]
Get:81 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [6,740 B]
Get:82 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:83 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse DEP-11 48x48 Icons [29 B]
Get:84 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse DEP-11 64x64 Icons [2,638 B]
Get:85 http://archive.ubuntu.com/ubuntu bionic-security/multiverse Sources [3,196 B]
Get:86 http://archive.ubuntu.com/ubuntu bionic-security/universe Sources [173 kB]
Get:87 http://archive.ubuntu.com/ubuntu bionic-security/restricted Sources [7,560 B]
Get:88 http://archive.ubuntu.com/ubuntu bionic-security/main Sources [164 kB]
Get:89 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [813 kB]
Get:90 http://archive.ubuntu.com/ubuntu bionic-security/main i386 Packages [519 kB]
Get:91 http://archive.ubuntu.com/ubuntu bionic-security/main Translation-en [255 kB]
Get:92 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [48.9 kB]
Get:93 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [28.4 kB]
Get:94 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [62.4 kB]
Get:95 http://archive.ubuntu.com/ubuntu bionic-security/restricted i386 Packages [6,412 B]
Get:96 http://archive.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [76.4 kB]
Get:97 http://archive.ubuntu.com/ubuntu bionic-security/restricted Translation-en [16.7 kB]
Get:98 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [695 kB]
Get:99 http://archive.ubuntu.com/ubuntu bionic-security/universe i386 Packages [635 kB]
Get:100 http://archive.ubuntu.com/ubuntu bionic-security/universe Translation-en [230 kB]
Get:101 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [56.0 kB]
Get:102 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [19.8 kB]
Get:103 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [109 kB]
Get:104 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [8,312 B]
Get:105 http://archive.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [3,884 B]
Get:106 http://archive.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2,880 B]
Get:107 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:108 http://archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 48x48 Icons [29 B]
Get:109 http://archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 64x64 Icons [2,638 B]
Get:110 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [7,724 B]
Get:111 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [7,736 B]
Get:112 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [4,588 B]
Get:113 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9,288 B]
Get:114 http://archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 48x48 Icons [2,809 B]
Get:115 http://archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 64x64 Icons [3,943 B]
Get:116 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [7,516 B]
Get:117 http://archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages [7,508 B]
Get:118 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [4,764 B]
Get:119 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages [76.9 kB]
Get:120 http://archive.ubuntu.com/ubuntu bionic-proposed/main i386 Packages [58.1 kB]
Get:121 http://archive.ubuntu.com/ubuntu bionic-proposed/main Translation-en [29.4 kB]
Get:122 http://archive.ubuntu.com/ubuntu bionic-proposed/main Translation-en_GB [432 kB]
Get:123 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 DEP-11 Metadata [208 B]
Get:124 http://archive.ubuntu.com/ubuntu bionic-proposed/main DEP-11 48x48 Icons [29 B]
Get:125 http://archive.ubuntu.com/ubuntu bionic-proposed/main DEP-11 64x64 Icons [29 B]
Get:126 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse Translation-en_GB [82.1 kB]
Get:127 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:128 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse DEP-11 48x48 Icons [29 B]
Get:129 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse DEP-11 64x64 Icons [2,638 B]
Get:130 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 Packages [15.6 kB]
Get:131 http://archive.ubuntu.com/ubuntu bionic-proposed/universe i386 Packages [11.4 kB]
Get:132 http://archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en [10.5 kB]
Get:133 http://archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en_GB [4,118 kB]
Get:134 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 DEP-11 Metadata [828 B]
Get:135 http://archive.ubuntu.com/ubuntu bionic-proposed/universe DEP-11 48x48 Icons [29 B]
Get:136 http://archive.ubuntu.com/ubuntu bionic-proposed/universe DEP-11 64x64 Icons [3,187 B]
Get:137 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted amd64 Packages [12.4 kB]
Get:138 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted Translation-en_GB [2,072 B]
Get:139 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted Translation-en [3,216 B]
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
bill@bill-Satellite-Pro-L300:~$

-----------------------------------------------------------------------------------------------------------------------------------

 cat -n /etc/apt/sources.list 4th line gives

Get:107 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:108 http://archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 48x48 Icons [29 B]
Get:109 http://archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 64x64 Icons [2,638 B]
Get:110 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [7,724 B]
Get:111 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [7,736 B]
Get:112 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [4,588 B]
Get:113 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9,288 B]
Get:114 http://archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 48x48 Icons [2,809 B]
Get:115 http://archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 64x64 Icons [3,943 B]
Get:116 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [7,516 B]
Get:117 http://archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages [7,508 B]
Get:118 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [4,764 B]
Get:119 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages [76.9 kB]
Get:120 http://archive.ubuntu.com/ubuntu bionic-proposed/main i386 Packages [58.1 kB]
Get:121 http://archive.ubuntu.com/ubuntu bionic-proposed/main Translation-en [29.4 kB]
Get:122 http://archive.ubuntu.com/ubuntu bionic-proposed/main Translation-en_GB [432 kB]
Get:123 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 DEP-11 Metadata [208 B]
Get:124 http://archive.ubuntu.com/ubuntu bionic-proposed/main DEP-11 48x48 Icons [29 B]
Get:125 http://archive.ubuntu.com/ubuntu bionic-proposed/main DEP-11 64x64 Icons [29 B]
Get:126 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse Translation-en_GB [82.1 kB]
Get:127 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:128 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse DEP-11 48x48 Icons [29 B]
Get:129 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse DEP-11 64x64 Icons [2,638 B]
Get:130 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 Packages [15.6 kB]
Get:131 http://archive.ubuntu.com/ubuntu bionic-proposed/universe i386 Packages [11.4 kB]
Get:132 http://archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en [10.5 kB]
Get:133 http://archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en_GB [4,118 kB]
Get:134 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 DEP-11 Metadata [828 B]
Get:135 http://archive.ubuntu.com/ubuntu bionic-proposed/universe DEP-11 48x48 Icons [29 B]
Get:136 http://archive.ubuntu.com/ubuntu bionic-proposed/universe DEP-11 64x64 Icons [3,187 B]
Get:137 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted amd64 Packages [12.4 kB]
Get:138 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted Translation-en_GB [2,072 B]
Get:139 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted Translation-en [3,216 B]
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
bill@bill-Satellite-Pro-L300:~$ clear

bill@bill-Satellite-Pro-L300:~$ cat -n /etc/apt/sources.list
     1 deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
     6 deb-src http://archive.ubuntu.com/ubuntu/ bionic universe main multiverse restricted #Added by software-properties
     7 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
     8
     9 ## Major bug fix updates produced after the final release of the
    10 ## distribution.
    11 deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    12 deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe main multiverse restricted #Added by software-properties
    13 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    14
    15 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    16 ## team, and may not be under a free licence. Please satisfy yourself as to
    17 ## your rights to use the software. Also, please note that software in
    18 ## universe WILL NOT receive any review or updates from the Ubuntu security
    19 ## team.
    20 deb http://archive.ubuntu.com/ubuntu/ bionic universe
    21 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial universe
    22 deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
    23 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates universe
    24
    25 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    26 ## team, and may not be under a free licence. Please satisfy yourself as to
    27 ## your rights to use the software. Also, please note that software in
    28 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    29 ## security team.
    30 deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
    31 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse
    32 deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    33 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    34
    35 ## N.B. software from this repository may not have been tested as
    36 ## extensively as that contained in the main release, although it includes
    37 ## newer versions of some applications which may provide useful features.
    38 ## Also, please note that software in backports WILL NOT receive any review
    39 ## or updates from the Ubuntu security team.
    40 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    41
    42 ## Uncomment the following two lines to add software from Canonical's
    43 ## 'partner' repository.
    44 ## This software is not part of Ubuntu, but is offered by Canonical and the
    45 ## respective vendors as a service to Ubuntu users.
    46 deb http://archive.canonical.com/ubuntu xenial partner
    47 deb-src http://archive.canonical.com/ubuntu xenial partner
    48
    49 deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted
    50 deb-src http://archive.ubuntu.com/ubuntu/ bionic-security universe main multiverse restricted #Added by software-properties
    51 deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    52 deb http://archive.ubuntu.com/ubuntu/ bionic-security universe
    53 deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    54 deb http://archive.ubuntu.com/ubuntu/ bionic-security multiverse
    55 deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
    56 deb http://archive.ubuntu.com/ubuntu/ bionic-backports universe multiverse main restricted
    57 deb http://archive.ubuntu.com/ubuntu/ bionic-proposed main multiverse universe restricted
bill@bill-Satellite-Pro-L300:~$

------------------------------------------------------------------------------------------------------------------------------------

ls -l /etc/apt/sources.list.d 5th line gives -

bill@bill-Satellite-Pro-L300:~$ ls -l /etc/apt/sources.list.d
total 0
bill@bill-Satellite-Pro-L300:~$

------------------------------------------------------------------------------------------------------------------------------------

cat -n /etc/apt/preferences 6th line gives -

bill@bill-Satellite-Pro-L300:~$ cat -n /etc/apt/preferences
cat: /etc/apt/preferences: No such file or directory
bill@bill-Satellite-Pro-L300:~$

--------------------------------------------------------------------------------------------------------------------------------------

ls -l /etc/apt/preferences.d 7th line gives

bill@bill-Satellite-Pro-L300:~$ ls -l /etc/apt/preferences.d
total 0
bill@bill-Satellite-Pro-L300:~$

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#35

Ok, most errors have already disappeared.

Let's try again:

open a terminal and issue the command

sudo gedit /etc/apt/sources.list

In the editor that opens after the password prompt, do the following changes:
remove all contents and replace then with the following lines (by copy and paste):

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ bionic-backports universe multiverse main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://archive.ubuntu.com/ubuntu/ bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb http://archive.ubuntu.com/ubuntu/ bionic-proposed main multiverse universe restricted
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-proposed main multiverse universe restricted

Revision history for this message
Manfred Hampl (m-hampl) said :
#36

Note:

At the very beginning the word "restricted" has to be the last one of the line that starts with "' deb cdrom:", and must not be alone on the following line.

When you have pasted all contents, save the file and close the editor.

And then run the commands

sudo rm /var/lib/apt/lists/*
sudo apt update

and copy/paste the output.

Revision history for this message
Manfred Hampl (m-hampl) said :
#37

correction:

copy/paste the output into this question document, not into the terminal window

Revision history for this message
Bill Davies (bedebill) said :
#38

After the editor page opened and I C&P the changes you made onto it back in the terminal it said this

bill@bill-Satellite-Pro-L300:~$ ls -l /etc/apt/preferences.d
total 0
bill@bill-Satellite-Pro-L300:~$ sudo gedit /etc/apt/sources.list
[sudo] password for bill:

** (gedit:9827): WARNING **: 12:34:04.425: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported

** (gedit:9827): WARNING **: 12:34:04.429: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

** (gedit:9827): WARNING **: 12:36:08.356: Set document metadata failed: Setting attribute metadata::gedit-position not supported
bill@bill-Satellite-Pro-L300:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#39

This is ok.

Now what output do you receive for

sudo rm /var/lib/apt/lists/*
sudo apt update
cat -n /etc/apt/sources.list

Revision history for this message
Bill Davies (bedebill) said :
#40

I did not C&P into the terminal , it was just what the terminal was saying after I went back to it after changing the editor window.

After C&P the command sudo rm /var/lib/apt/lists/* it said this

bill@bill-Satellite-Pro-L300:~$ sudo rm /var/lib/apt/lists/*
rm: cannot remove '/var/lib/apt/lists/auxfiles': Is a directory
rm: cannot remove '/var/lib/apt/lists/partial': Is a directory
bill@bill-Satellite-Pro-L300:~$

Revision history for this message
Bill Davies (bedebill) said :
#41

After running the command sudo apt update it gave back this ( after running loads of directories through it for nearly 2 mins )

bill@bill-Satellite-Pro-L300:~$ sudo rm /var/lib/apt/lists/*
rm: cannot remove '/var/lib/apt/lists/auxfiles': Is a directory
rm: cannot remove '/var/lib/apt/lists/partial': Is a directory
bill@bill-Satellite-Pro-L300:~$ clear

Revision history for this message
Bill Davies (bedebill) said :
#42

After running cat -n /etc/apt/sources.list it says this

bill@bill-Satellite-Pro-L300:~$ cat -n /etc/apt/sources.list
     1 deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
     6 deb-src http://archive.ubuntu.com/ubuntu/ bionic universe main multiverse restricted #Added by software-properties
     7 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
     8
     9 ## Major bug fix updates produced after the final release of the
    10 ## distribution.
    11 deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    12 deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe main multiverse restricted #Added by software-properties
    13 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    14
    15 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    16 ## team, and may not be under a free licence. Please satisfy yourself as to
    17 ## your rights to use the software. Also, please note that software in
    18 ## universe WILL NOT receive any review or updates from the Ubuntu security
    19 ## team.
    20 deb http://archive.ubuntu.com/ubuntu/ bionic universe
    21 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial universe
    22 deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
    23 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates universe
    24
    25 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    26 ## team, and may not be under a free licence. Please satisfy yourself as to
    27 ## your rights to use the software. Also, please note that software in
    28 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    29 ## security team.
    30 deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
    31 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse
    32 deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    33 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    34
    35 ## N.B. software from this repository may not have been tested as
    36 ## extensively as that contained in the main release, although it includes
    37 ## newer versions of some applications which may provide useful features.
    38 ## Also, please note that software in backports WILL NOT receive any review
    39 ## or updates from the Ubuntu security team.
    40 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    41
    42 ## Uncomment the following two lines to add software from Canonical's
    43 ## 'partner' repository.
    44 ## This software is not part of Ubuntu, but is offered by Canonical and the
    45 ## respective vendors as a service to Ubuntu users.
    46 deb http://archive.canonical.com/ubuntu xenial partner
    47 deb-src http://archive.canonical.com/ubuntu xenial partner
    48
    49 deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted
    50 deb-src http://archive.ubuntu.com/ubuntu/ bionic-security universe main multiverse restricted #Added by software-properties
    51 deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    52 deb http://archive.ubuntu.com/ubuntu/ bionic-security universe
    53 deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    54 deb http://archive.ubuntu.com/ubuntu/ bionic-security multiverse
    55 deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
    56 deb http://archive.ubuntu.com/ubuntu/ bionic-backports universe multiverse main restricted
    57 deb http://archive.ubuntu.com/ubuntu/ bionic-proposed main multiverse universe restricted
bill@bill-Satellite-Pro-L300:~$

Revision history for this message
Bill Davies (bedebill) said :
#43

I see ''restricted '' is on it's own line , like you said it shouldn't be !

Revision history for this message
Bill Davies (bedebill) said :
#44

In the terminal window it is not alone on it's own line , it is just when you C&P it over here that it is.

Revision history for this message
Manfred Hampl (m-hampl) said :
#45

Whatever you did, it was not successful, because the contents of the sources.list file are still the same old wrong contents.

Try again.

open a terminal window
issue the command

sudo gedit /etc/apt/sources.list

remove all contents and paste the new contents as listed in comment #35
Then save the file (ctrl-s) and close the editor.

Are there any error messages in the editor (apart from these ** (gedit:9827): WARNING **:) messages in the terminal?

Does the output of the command

cat -n /etc/apt/sources.list

still show
57 deb http://archive.ubuntu.com/ubuntu/ bionic-proposed main ...
as its last line?

Revision history for this message
Bill Davies (bedebill) said :
#46

Done that and it shows

bill@bill-Satellite-Pro-L300:~$ cat -n /etc/apt/sources.list
     1 deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
     6 deb-src http://archive.ubuntu.com/ubuntu/ bionic universe main multiverse restricted #Added by software-properties
     7 deb-s

ETC ALL the Missing

    54 deb http://archive.ubuntu.com/ubuntu/ bionic-security multiverse
    55 deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
    56 deb http://archive.ubuntu.com/ubuntu/ bionic-backports universe multiverse main restricted
    57 deb http://archive.ubuntu.com/ubuntu/ bionic-proposed main multiverse universe restricted
bill@bill-Satellite-Pro-L300:~$

Revision history for this message
Bill Davies (bedebill) said :
#47

No when I click on Recent docs , there is nothing there ?

Revision history for this message
Bill Davies (bedebill) said :
#48

I have opened a pic and checked recent and it was there so it has started remembering again .

Revision history for this message
Manfred Hampl (m-hampl) said :
#49

I do not know what you are doing, but the contents of the sources.list file do not change.
I cannot understand what there is happening on your system.

I can only ask you to try again, and pleas describe what you do.

Revision history for this message
Bill Davies (bedebill) said :
#50

This ''Failed to upload repository''business started after I tried to upload a security update , I think it was called ''salt'' , since then when I turn on the laptop it always is in Airplane mode, never used to do this . Thought this might give you a pointer.

Revision history for this message
Bill Davies (bedebill) said :
#51

Following commands in #39 after I have restarted the laptop

bill@bill-Satellite-Pro-L300:~$ sudo rm /var/lib/apt/lists/*
[sudo] password for bill:
rm: cannot remove '/var/lib/apt/lists/auxfiles': Is a directory
rm: cannot remove '/var/lib/apt/lists/partial': Is a directory
bill@bill-Satellite-Pro-L300:~$

then 2nd command gives this

bill@bill-Satellite-Pro-L300:~$ sudo rm /var/lib/apt/lists/*
[sudo] password for bill:
rm: cannot remove '/var/lib/apt/lists/auxfiles': Is a directory
rm: cannot remove '/var/lib/apt/lists/partial': Is a directory
bill@bill-Satellite-Pro-L300:~$ clear
bill@bill-Satellite-Pro-L300:~$ sudo apt update
Ign:1 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial InRelease
Err:2 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release
  Please use apt-cdrom to allow APT to recognise this CD-ROM. 'apt-get update' cannot be used to add new CD-ROMs
Get:3 http://gb.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:5 http://archive.canonical.com/ubuntu xenial InRelease [11.5 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:7 http://archive.canonical.com/ubuntu xenial/partner Sources [2,388 B]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:9 http://archive.canonical.com/ubuntu xenial/partner amd64 Packages [3,124 B]
Get:10 http://archive.canonical.com/ubuntu xenial/partner i386 Packages [3,120 B]
Get:11 http://archive.canonical.com/ubuntu xenial/partner Translation-en [1,672 B]
Get:12 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:14 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB]
Get:16 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic/main Sources [829 kB]
Get:18 http://gb.archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic/multiverse Sources [181 kB]
Get:20 http://gb.archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic/restricted Sources [5,324 B]
Get:22 http://archive.ubuntu.com/ubuntu bionic/universe Sources [9,051 kB]
Get:23 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [3,400 B]
Get:24 http://security.ubuntu.com/ubuntu xenial-security/main Sources [168 kB]
Get:25 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [120 kB]
Get:26 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,116 B]
Get:27 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,019 kB]
Get:28 http://gb.archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]
Get:29 http://gb.archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
Get:30 http://gb.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [271 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic/main i386 Packages [1,007 kB]
Get:32 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main Sources [349 kB]
Get:33 http://gb.archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [8,756 B]
Get:34 http://gb.archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [2,536 B]
Get:35 http://gb.archive.ubuntu.com/ubuntu xenial-backports/main Sources [4,848 B]
Get:36 http://gb.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [7,508 B]
Get:37 http://archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Get:38 http://archive.ubuntu.com/ubuntu bionic/main Translation-en_GB [432 kB]
Get:39 http://archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
Get:40 http://archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Get:41 http://archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
Get:42 http://archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [9,156 B]
Get:43 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9,184 B]
Get:44 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3,584 B]
Get:45 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-en_GB [2,072 B]
Get:46 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8,570 kB]
Get:47 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages [8,531 kB]
Get:48 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4,941 kB]
Get:49 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en_GB [4,118 kB]
Get:50 http://archive.ubuntu.com/ubuntu bionic/universe amd64 DEP-11 Metadata [3,287 kB]
Get:51 http://archive.ubuntu.com/ubuntu bionic/universe DEP-11 48x48 Icons [2,151 kB]
Get:52 http://archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8,420 kB]
Get:53 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:54 http://archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]
Get:55 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en_GB [82.1 kB]
Get:56 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:57 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49.7 kB]
Get:58 http://archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons [8,931 B]
Get:59 http://archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB]
Get:60 http://archive.ubuntu.com/ubuntu bionic-updates/universe Sources [287 kB]
Get:61 http://archive.ubuntu.com/ubuntu bionic-updates/main Sources [328 kB]
Get:62 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Sources [9,472 B]
Get:63 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Sources [7,328 B]
Get:64 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [726 kB]
Get:65 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1,038 kB]
Get:66 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [348 kB]
Get:67 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [294 kB]
Get:68 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [81.9 kB]
Get:69 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [157 kB]
Get:70 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [85.5 kB]
Get:71 http://archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [11.0 kB]
Get:72 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [18.8 kB]
Get:73 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,100 kB]
Get:74 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1,028 kB]
Get:75 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [342 kB]
Get:76 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [285 kB]
Get:77 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [214 kB]
Get:78 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [464 kB]
Get:79 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [19.4 kB]
Get:80 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [8,512 B]
Get:81 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [6,740 B]
Get:82 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:83 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse DEP-11 48x48 Icons [29 B]
Get:84 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse DEP-11 64x64 Icons [2,638 B]
Get:85 http://archive.ubuntu.com/ubuntu bionic-security/multiverse Sources [3,196 B]
Get:86 http://archive.ubuntu.com/ubuntu bionic-security/universe Sources [173 kB]
Get:87 http://archive.ubuntu.com/ubuntu bionic-security/main Sources [164 kB]
Get:88 http://archive.ubuntu.com/ubuntu bionic-security/restricted Sources [7,560 B]
Get:89 http://archive.ubuntu.com/ubuntu bionic-security/main i386 Packages [519 kB]
Get:90 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [813 kB]
Get:91 http://archive.ubuntu.com/ubuntu bionic-security/main Translation-en [255 kB]
Get:92 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [48.9 kB]
Get:93 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [28.4 kB]
Get:94 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [62.4 kB]
Get:95 http://archive.ubuntu.com/ubuntu bionic-security/restricted i386 Packages [6,412 B]
Get:96 http://archive.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [76.4 kB]
Get:97 http://archive.ubuntu.com/ubuntu bionic-security/restricted Translation-en [16.7 kB]
Get:98 http://archive.ubuntu.com/ubuntu bionic-security/universe i386 Packages [635 kB]
Get:99 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [695 kB]
Get:100 http://archive.ubuntu.com/ubuntu bionic-security/universe Translation-en [230 kB]
Get:101 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [55.9 kB]
Get:102 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [19.8 kB]
Get:103 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [109 kB]
Get:104 http://archive.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [3,884 B]
Get:105 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [8,312 B]
Get:106 http://archive.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2,880 B]
Get:107 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:108 http://archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 48x48 Icons [29 B]
Get:109 http://archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 64x64 Icons [2,638 B]
Get:110 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [7,724 B]
Get:111 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [7,736 B]
Get:112 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [4,588 B]
Get:113 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9,288 B]
Get:114 http://archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 48x48 Icons [2,809 B]
Get:115 http://archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 64x64 Icons [3,943 B]
Get:116 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [7,516 B]
Get:117 http://archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages [7,508 B]
Get:118 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [4,764 B]
Get:119 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages [82.0 kB]
Get:120 http://archive.ubuntu.com/ubuntu bionic-proposed/main i386 Packages [60.7 kB]
Get:121 http://archive.ubuntu.com/ubuntu bionic-proposed/main Translation-en_GB [432 kB]
Get:122 http://archive.ubuntu.com/ubuntu bionic-proposed/main Translation-en [30.7 kB]
Get:123 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 DEP-11 Metadata [208 B]
Get:124 http://archive.ubuntu.com/ubuntu bionic-proposed/main DEP-11 48x48 Icons [29 B]
Get:125 http://archive.ubuntu.com/ubuntu bionic-proposed/main DEP-11 64x64 Icons [29 B]
Get:126 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse Translation-en_GB [82.1 kB]
Get:127 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:128 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse DEP-11 48x48 Icons [29 B]
Get:129 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse DEP-11 64x64 Icons [2,638 B]
Get:130 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 Packages [16.4 kB]
Get:131 http://archive.ubuntu.com/ubuntu bionic-proposed/universe i386 Packages [12.3 kB]
Get:132 http://archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en [10.9 kB]
Get:133 http://archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en_GB [4,118 kB]
Get:134 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 DEP-11 Metadata [828 B]
Get:135 http://archive.ubuntu.com/ubuntu bionic-proposed/universe DEP-11 48x48 Icons [29 B]
Get:136 http://archive.ubuntu.com/ubuntu bionic-proposed/universe DEP-11 64x64 Icons [3,187 B]
Get:137 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted amd64 Packages [13.7 kB]
Get:138 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted Translation-en [3,572 B]
Get:139 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted Translation-en_GB [2,072 B]

After 3rd command

 [10.9 kB]
Get:133 http://archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en_GB [4,118 kB]
Get:134 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 DEP-11 Metadata [828 B]
Get:135 http://archive.ubuntu.com/ubuntu bionic-proposed/universe DEP-11 48x48 Icons [29 B]
Get:136 http://archive.ubuntu.com/ubuntu bionic-proposed/universe DEP-11 64x64 Icons [3,187 B]
Get:137 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted amd64 Packages [13.7 kB]
Get:138 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted Translation-en [3,572 B]
Get:139 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted Translation-en_GB [2,072 B]
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
bill@bill-Satellite-Pro-L300:~$ clear

bill@bill-Satellite-Pro-L300:~$ cat -n /etc/apt/sources.list
     1 deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
     6 deb-src http://archive.ubuntu.com/ubuntu/ bionic universe main multiverse restricted #Added by software-properties
     7 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
     8
     9 ## Major bug fix updates produced after the final release of the
    10 ## distribution.
    11 deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    12 deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe main multiverse restricted #Added by software-properties
    13 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    14
    15 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    16 ## team, and may not be under a free licence. Please satisfy yourself as to
    17 ## your rights to use the software. Also, please note that software in
    18 ## universe WILL NOT receive any review or updates from the Ubuntu security
    19 ## team.
    20 deb http://archive.ubuntu.com/ubuntu/ bionic universe
    21 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial universe
    22 deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
    23 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates universe
    24
    25 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    26 ## team, and may not be under a free licence. Please satisfy yourself as to
    27 ## your rights to use the software. Also, please note that software in
    28 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    29 ## security team.
    30 deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
    31 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse
    32 deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    33 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    34
    35 ## N.B. software from this repository may not have been tested as
    36 ## extensively as that contained in the main release, although it includes
    37 ## newer versions of some applications which may provide useful features.
    38 ## Also, please note that software in backports WILL NOT receive any review
    39 ## or updates from the Ubuntu security team.
    40 deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    41
    42 ## Uncomment the following two lines to add software from Canonical's
    43 ## 'partner' repository.
    44 ## This software is not part of Ubuntu, but is offered by Canonical and the
    45 ## respective vendors as a service to Ubuntu users.
    46 deb http://archive.canonical.com/ubuntu xenial partner
    47 deb-src http://archive.canonical.com/ubuntu xenial partner
    48
    49 deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted
    50 deb-src http://archive.ubuntu.com/ubuntu/ bionic-security universe main multiverse restricted #Added by software-properties
    51 deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    52 deb http://archive.ubuntu.com/ubuntu/ bionic-security universe
    53 deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    54 deb http://archive.ubuntu.com/ubuntu/ bionic-security multiverse
    55 deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
    56 deb http://archive.ubuntu.com/ubuntu/ bionic-backports universe multiverse main restricted
    57 deb http://archive.ubuntu.com/ubuntu/ bionic-proposed main multiverse universe restricted
bill@bill-Satellite-Pro-L300:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#52

The required task is replacing the contents of the sources.list configuration file with the contents that I have pasted into comment #35
As long as this isn't done you will always see error messages at the end of "apt update" (and some other errors that do not result in messages).

The important steps are editing the file, removing all current contents, pasting the list of "deb ..." directives from comment #35 and saving the file with the new contents.

Revision history for this message
Bill Davies (bedebill) said :
#53

To be clear when you said

In the editor that opens after the password prompt, do the following changes:
remove all contents and replace then with the following lines (by copy and paste):

I highlighted the contents of the editor box and then C&P the corrected script from #35 in one block , hope this was correct. I havent had any issues with Ubuntu for years until this as the software updater just did it's thing.

Revision history for this message
Manfred Hampl (m-hampl) said :
#54

Fully correct. This is what has to be done.

As a quick check after the paste action: the first an the last lines have to start with a # sign.
If that doesn't, then the paste was wrong.

After the paste action you have to save the file, overwriting the old contents.

Revision history for this message
Bill Davies (bedebill) said :
#55

Still giving back this in the terminal after saving the corrected script in the editor.

bill@bill-Satellite-Pro-L300:~$ sudo gedit /etc/apt/sources.list
[sudo] password for bill:

** (gedit:6337): WARNING **: 17:55:09.377: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported

** (gedit:6337): WARNING **: 17:55:09.379: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

** (gedit:6337): WARNING **: 17:55:12.565: Set document metadata failed: Setting attribute metadata::gedit-position not supported
bill@bill-Satellite-Pro-L300:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#56

These warnings are harmless and can be ignored. They will always be shown when you start gedit from a command line terminal.

The important question is whether the file was saved with the correct contents.

Revision history for this message
Bill Davies (bedebill) said :
#57

I do not know if you have fixed it Manfred but I am optimistic as there have been changes , please see the following. I checked the saved file and the last line did not have a # in front of it , so this was probably the problem , so sorry if it was my fault wasting your time. I can follow your instructions but haven't a clue what they mean . Anyway if it is now sorted thanknyou so much for all your knowledge and help. Cheers Bill

bill@bill-Satellite-Pro-L300:~$ sudo rm /var/lib/apt/lists/*
rm: cannot remove '/var/lib/apt/lists/auxfiles': Is a directory
rm: cannot remove '/var/lib/apt/lists/partial': Is a directory
bill@bill-Satellite-Pro-L300:~$

2nd sudo apt update

bill@bill-Satellite-Pro-L300:~$ sudo gedit /etc/apt/sources.list
[sudo] password for bill:

** (gedit:8075): WARNING **: 18:36:10.166: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported

** (gedit:8075): WARNING **: 18:36:10.167: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

** (gedit:8075): WARNING **: 18:36:16.319: Set document metadata failed: Setting attribute metadata::gedit-position not supported
bill@bill-Satellite-Pro-L300:~$ clear

bill@bill-Satellite-Pro-L300:~$ sudo rm /var/lib/apt/lists/*
rm: cannot remove '/var/lib/apt/lists/auxfiles': Is a directory
rm: cannot remove '/var/lib/apt/lists/partial': Is a directory
bill@bill-Satellite-Pro-L300:~$ sudo apt update
Get:1 http://archive.canonical.com/ubuntu bionic InRelease [10.2 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:3 http://archive.canonical.com/ubuntu bionic/partner i386 Packages [2,292 B]
Get:4 http://archive.canonical.com/ubuntu bionic/partner amd64 Packages [2,288 B]
Get:5 http://archive.canonical.com/ubuntu bionic/partner Translation-en [1,332 B]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/main i386 Packages [1,007 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,019 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/main Translation-en_GB [432 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9,184 B]
Get:17 http://archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [9,156 B]
Get:18 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-en_GB [2,072 B]
Get:19 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3,584 B]
Get:20 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages [8,531 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8,570 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4,941 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en_GB [4,118 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic/universe amd64 DEP-11 Metadata [3,287 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic/universe DEP-11 48x48 Icons [2,151 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8,420 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en_GB [82.1 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49.7 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons [8,931 B]
Get:33 http://archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB]
Get:34 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1,038 kB]
Get:35 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [726 kB]
Get:36 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [348 kB]
Get:37 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [295 kB]
Get:38 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [81.9 kB]
Get:39 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [157 kB]
Get:40 http://archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [11.0 kB]
Get:41 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [85.5 kB]
Get:42 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [18.8 kB]
Get:43 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,100 kB]
Get:44 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1,028 kB]
Get:45 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [342 kB]
Get:46 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [285 kB]
Get:47 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [214 kB]
Get:48 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [461 kB]
Get:49 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [19.4 kB]
Get:50 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [8,512 B]
Get:51 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [6,740 B]
Get:52 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:53 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse DEP-11 48x48 Icons [29 B]
Get:54 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse DEP-11 64x64 Icons [2,638 B]
Get:55 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [7,736 B]
Get:56 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [7,724 B]
Get:57 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [4,588 B]
Get:58 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9,288 B]
Get:59 http://archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 48x48 Icons [2,809 B]
Get:60 http://archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 64x64 Icons [3,943 B]
Get:61 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [7,516 B]
Get:62 http://archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages [7,508 B]
Get:63 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [4,764 B]
Get:64 http://archive.ubuntu.com/ubuntu bionic-security/main i386 Packages [519 kB]
Get:65 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [813 kB]
Get:66 http://archive.ubuntu.com/ubuntu bionic-security/main Translation-en [255 kB]
Get:67 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [48.8 kB]
Get:68 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [28.4 kB]
Get:69 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [62.4 kB]
Get:70 http://archive.ubuntu.com/ubuntu bionic-security/restricted i386 Packages [6,412 B]
Get:71 http://archive.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [76.4 kB]
Get:72 http://archive.ubuntu.com/ubuntu bionic-security/restricted Translation-en [16.7 kB]
Get:73 http://archive.ubuntu.com/ubuntu bionic-security/universe i386 Packages [635 kB]
Get:74 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [695 kB]
Get:75 http://archive.ubuntu.com/ubuntu bionic-security/universe Translation-en [230 kB]
Get:76 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [55.9 kB]
Get:77 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [19.8 kB]
Get:78 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [109 kB]
Get:79 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [8,312 B]
Get:80 http://archive.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [3,884 B]
Get:81 http://archive.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2,880 B]
Get:82 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:83 http://archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 48x48 Icons [29 B]
Get:84 http://archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 64x64 Icons [2,638 B]
Fetched 55.0 MB in 1min 32s (595 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
11 packages can be upgraded. Run 'apt list --upgradable' to see them.
bill@bill-Satellite-Pro-L300:~$

------------------------------------------------------------------------------------------------------------------------

I then ran apt list upgradable and it said this

bill@bill-Satellite-Pro-L300:~$ apt list --upgradable
Listing... Done
bind9-host/bionic-updates,bionic-security 1:9.11.3+dfsg-1ubuntu1.13 amd64 [upgradable from: 1:9.11.3+dfsg-1ubuntu1.12]
dnsutils/bionic-updates,bionic-security 1:9.11.3+dfsg-1ubuntu1.13 amd64 [upgradable from: 1:9.11.3+dfsg-1ubuntu1.12]
libbind9-160/bionic-updates,bionic-security 1:9.11.3+dfsg-1ubuntu1.13 amd64 [upgradable from: 1:9.11.3+dfsg-1ubuntu1.12]
libdns-export1100/bionic-updates,bionic-security 1:9.11.3+dfsg-1ubuntu1.13 amd64 [upgradable from: 1:9.11.3+dfsg-1ubuntu1.12]
libdns1100/bionic-updates,bionic-security 1:9.11.3+dfsg-1ubuntu1.13 amd64 [upgradable from: 1:9.11.3+dfsg-1ubuntu1.12]
libirs160/bionic-updates,bionic-security 1:9.11.3+dfsg-1ubuntu1.13 amd64 [upgradable from: 1:9.11.3+dfsg-1ubuntu1.12]
libisc-export169/bionic-updates,bionic-security 1:9.11.3+dfsg-1ubuntu1.13 amd64 [upgradable from: 1:9.11.3+dfsg-1ubuntu1.12]
libisc169/bionic-updates,bionic-security 1:9.11.3+dfsg-1ubuntu1.13 amd64 [upgradable from: 1:9.11.3+dfsg-1ubuntu1.12]
libisccc160/bionic-updates,bionic-security 1:9.11.3+dfsg-1ubuntu1.13 amd64 [upgradable from: 1:9.11.3+dfsg-1ubuntu1.12]
libisccfg160/bionic-updates,bionic-security 1:9.11.3+dfsg-1ubuntu1.13 amd64 [upgradable from: 1:9.11.3+dfsg-1ubuntu1.12]
liblwres160/bionic-updates,bionic-security 1:9.11.3+dfsg-1ubuntu1.13 amd64 [upgradable from: 1:9.11.3+dfsg-1ubuntu1.12]
bill@bill-Satellite-Pro-L300:~$

---------------------------------------------------------------------------------------------------

then 3rd command

bill@bill-Satellite-Pro-L300:~$ cat -n /etc/apt/sources.list
     1 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
     6 # deb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    11 # deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    12
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14 ## team, and may not be under a free licence. Please satisfy yourself as to
    15 ## your rights to use the software. Also, please note that software in
    16 ## universe WILL NOT receive any review or updates from the Ubuntu security
    17 ## team.
    18 deb http://archive.ubuntu.com/ubuntu/ bionic universe
    19 # deb-src http://archive.ubuntu.com/ubuntu/ bionic universe
    20 deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
    21 # deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe
    22
    23 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    24 ## team, and may not be under a free licence. Please satisfy yourself as to
    25 ## your rights to use the software. Also, please note that software in
    26 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    27 ## security team.
    28 deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
    29 # deb-src http://archive.ubuntu.com/ubuntu/ bionic multiverse
    30 deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    31 # deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    32
    33 ## N.B. software from this repository may not have been tested as
    34 ## extensively as that contained in the main release, although it includes
    35 ## newer versions of some applications which may provide useful features.
    36 ## Also, please note that software in backports WILL NOT receive any review
    37 ## or updates from the Ubuntu security team.
    38 deb http://archive.ubuntu.com/ubuntu/ bionic-backports universe multiverse main restricted
    39 # deb-src http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    40
    41 ## Uncomment the following two lines to add software from Canonical's
    42 ## 'partner' repository.
    43 ## This software is not part of Ubuntu, but is offered by Canonical and the
    44 ## respective vendors as a service to Ubuntu users.
    45 deb http://archive.canonical.com/ubuntu bionic partner
    46 # deb-src http://archive.canonical.com/ubuntu bionic partner
    47
    48 deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted
    49 # deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
    50 deb http://archive.ubuntu.com/ubuntu/ bionic-security universe
    51 # deb-src http://security.ubuntu.com/ubuntu bionic-security universe
    52 deb http://archive.ubuntu.com/ubuntu/ bionic-security multiverse
    53 # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
    54 # deb http://archive.ubuntu.com/ubuntu/ bionic-proposed main multiverse universe restricted
    55 # deb-src http://archive.ubuntu.com/ubuntu/ bionic-proposed main multiverse universe restricted
bill@bill-Satellite-Pro-L300:~$

Revision history for this message
Bill Davies (bedebill) said :
#58

Well done Manfred , I restarted the laptop and ran the software updater and it said the software on this PC is up to date, normally it said failed to download repository , thanks so much . Do not know how you did it but you got there . Cheers Bill

Revision history for this message
Bill Davies (bedebill) said :
#59

Thanks Manfred Hampl, that solved my question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#60

Well done, you have issued the commands to solve the problem.
Just a remark:
There should not be any need to run the command "sudo rm /var/lib/apt/lists/*" again (unless there are weird errors from the package manager like "Conflicting distribution").

Revision history for this message
Bill Davies (bedebill) said :
#61

Cheers Manfred , I am having a few beers in celebration , I owe you several. cheers