Repository no longer has a release file

I am unable to screenshot when in the synaptic package manager but have copied and paste,

The repository 'http://gb.archive.ubuntu.com/ubuntu disco Release' does not have a Release file.Updating from such a repository can't be done securely, and is therefore disabled by default.See apt-secure(8) manpage for repository creation and user configuration details.The repository 'http://gb.archive.ubuntu.com/ubuntu disco-updates Release' does not have a Release file.Updating from such a repository can't be done securely, and is therefore disabled by default.See apt-secure(8) manpage for repository creation and user configuration details.The repository 'http://security.ubuntu.com/ubuntu disco-security Release' does not have a Release file.

I’m gonna make this public, so everyone is able to help.

http://gb.archive.ubuntu.com/ubuntu disco

refers to ubuntu 19.04 which was only supported until january of this year. you won’t get any more updates for that release because it is beyond it’s end of life time period: https://wiki.ubuntu.com/DiscoDingo/ReleaseNotes

1 Like

if you are running ubuntu 20.04 as stated in your previous post,

then it might be helpful to see the contents of your /etc/apt/sources.list file. it sounds like you just need to remove the lines referring to disco, but that may break things further if you manually changed repositories somehow.

1 Like

I have removed the http:// ppa.launchpad.net/linuxuprising/java/ubuntu/ from the package manager which are not supported on the upgrade to 20.04
I have not removed but have disabled all the ‘Disco Dingo’ (source code) there are 5 in number.
I still have the repository release file problem

where and how did you disable them?

it still sounds like it would be helpful to see what is in your sources.list file:

i was able to double-click mine and it opened with a text editor. if you are trying to open it in a terminal, you can use
cat /etc/apt/sources.list.

it also sounds like it might be helpful to see what your /etc/lsb-release file says. that one also opens with a double-click or cat.

can you copy and paste the error message you are getting?

2 Likes

Just to clarify the situation
I have not removed but have disabled all the ‘Disco Dingo’ (source code) from the (Software & Updates) under the subtitle (Other Software) By unchecking the boxes, It asked me then to Reload, I have not removed any of the Authentication signing keys. But i still get the following on my Software Updater (Failed to download repository information)
I have tried on the terminal both ( /etc/lsb-release file ) and get ( bash: /etc/lsb-release: Permission denied )
Tried ( cat/etc/lsb-release file ) and get ( bash: cat/etc/lsb-release: No such file or directory )
In the Synatic Package Manager Iget the following ( Could not download all repository indexes

The repository may no longer be available or could not be contacted because of network problems. If available, an older version of the failed index will be used. Otherwise, the repository will be ignored. Check your network connection and ensure the repository address is correct in ‘Repositories’ under ‘Settings’. ) and ( The repository ‘http://gb.archive.ubuntu.com/ubuntu disco-updates Release’ does not have a Release file.Updating from such a repository can’t be done securely, and is therefore disabled by default.See apt-secure(8) manpage for repository creation and user configuration details.The repository ‘http://security.ubuntu.com/ubuntu disco-security Release’ does not have a Release file.
I am new to ubuntu and not sure what i am doing so please bear with me, thank you for your input to date.

2 Likes

that was close, but you need a space between cat and /etc/lsb-release. it may help to think of it this way: cat is the command which reads and prints the contents of /etc/lsb-release in the terminal:
cat /etc/lsb-release
you can also copy and paste that command in a terminal if necessary.

this definitely makes it sound like even though you have disabled the disco dingo sources in software and updates there is something still requesting information from them.

once you are able to get cat working correctly on /etc/lsb-release, it will probably be helpful to get the same information from /etc/apt/sources.list :slight_smile:

2 Likes

on the terminal I got this

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"

$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 19.04 _Disco Dingo_ - Release amd64 (20190416)]/ disco 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/ focal restricted main multiverse universe
#Addedby software-properties
deb-src http://archive.ubuntu.com/ubuntu/ focal restricted main multiverse universe
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco main restricted

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

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ disco-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-src http://gb.archive.ubuntu.com/ubuntu/ disco multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ disco-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/ disco-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/ disco partner
deb-src http://archive.canonical.com/ubuntu/ disco partner

deb http://security.ubuntu.com/ubuntu/ focal-security restricted main multiverse universe
#Addedby software-properties
deb-src http://archive.ubuntu.com/ubuntu/ focal-security restricted main multiverse universe
deb-src http://security.ubuntu.com/ubuntu/ disco-security main restricted
# deb-src http://security.ubuntu.com/ubuntu/ disco-security universe
# deb-src http://security.ubuntu.com/ubuntu/ disco-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb http://archive.ubuntu.com/ubuntu/ trusty main
deb http://archive.ubuntu.com/ubuntu/ focal-backports restricted main multiverse universe
#Addedby software-properties
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports restricted main multiverse universe


# deb 'http://gb.archive.ubuntu.com/ubuntu disco Release'
# deb-src 'http://gb.archive.ubuntu.com/ubuntu disco Release'
deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner
deb http://archive.ubuntu.com/ubuntu eoan main universe restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu eoan main universe restricted multiverse #Added by software-properties
deb http://security.ubuntu.com/ubuntu/ eoan-security main multiverse universe restricted
deb http://archive.ubuntu.com/ubuntu eoan-updates main multiverse universe restricted
deb http://archive.ubuntu.com/ubuntu eoan-backports main multiverse universe restricted

Not sure what to do with the above source list can you help, thanks

my first suggestion is that you make a backup copy of your sources.list before editing it. i know it is broken now, but at least it is a starting point.

i would cd into the /etc/apt directory:
cd /etc/apt
and then make that copy with cp:
sudo cp sources.list sources.list.bak.

i usually like to make sure the copy worked so i run the command ls to see that sources.list is there as well as sources.list.bak

$ ls
apt.conf.d preferences.d sources.list.bak trusted.gpg.d
auth.conf.d sources.list sources.list.d

from there you will also be able to open the original for editing with gedit the text editor:
sudo gedit sources.list

in order to make a line not be read (comment it out) you just need to put a # sign in front of it. i would suggest doing that for all of the lines that have disco in them. i don’t think you will need the eoan or trusty ones either, but one step at a time.

so a line like:

deb-src http://gb.archive.ubuntu.com/ubuntu/ disco-updates universe

becomes

#deb-src http://gb.archive.ubuntu.com/ubuntu/ disco-updates universe

obviously you need to save any changes you make to the file after you make them.

i would not suggest changing the whole thing, but for reference this is the sources.list file from a fairly new ubuntu 20.04 virtual machine where you can see that the only lines without a # in front of them have the word focal in them:

#deb cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal main restricted

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

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

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ focal universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal universe
deb http://us.archive.ubuntu.com/ubuntu/ focal-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-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://us.archive.ubuntu.com/ubuntu/ focal multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal multiverse
deb http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-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://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-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 focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner

deb http://security.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

i don’t think you will have to reboot for that to work, but if you run
sudo apt update
and
sudo apt upgrade
and it still gives you a warning about the disco lines, you may want to reboot and try again :slight_smile:

as with all things system change related, i strongly recommend backing up your system before making any changes.

1 Like

Before i go any further can you confirm that backup is o-k this is the output on the terminal.

peterphj@peterphj-H310M-H-2-0:~$ cd /etc/apt
peterphj@peterphj-H310M-H-2-0:/etc/apt$ sudo cp sources.list sources.list.bak.
[sudo] password for peterphj:
peterphj@peterphj-H310M-H-2-0:/etc/apt$ ls
apt.conf.d sources.list.distUpgrade sources.list.save.5
auth.conf.d sources.list.save sources.list.save.6
preferences.d sources.list.save.1 sources.list.save.7
sources.list sources.list.save.10 sources.list.save.8
sources.list.backup sources.list.save.2 sources.list.save.9
sources.list.bak. sources.list.save.3 trusted.gpg
sources.list.d sources.list.save.4 trusted.gpg.d
peterphj@peterphj-H310M-H-2-0:/etc/apt$

i see both of them listed. if you want extra confirmation, you can check out its contents with cat:
cat /etc/apt/sources.list.bak.
and make sure they look like what is in your regular sources.list.

for the record, sources.list.bak doesn’t need a . at the end. that was a typo on my part. my apologies. it shouldn’t affect you reading the contents or restoring them if you need to. i just wanted to let you know :slight_smile:

2 Likes

Hi Copy & paste the source list on to the text editor and placed the # in front of all the lines with disco in them, but not sure how to replace the original in the terminal with updated source code from the editor.
sorry to be so dumb with this programming. Thanks for your patient and help.

the regular text editor for ubuntu is a program called gedit. if you opened that as your user by clicking on the icon, i can’t think of any way to write the file to its location in /etc/apt because you need to use sudo to write to that directory.

you will lose the changes you have already made, but my best advice is to open the file with gedit using sudo with this command:
sudo gedit /etc/apt/sources.list
and then comment out the disco lines with a # again. that way when you go to save the changes, you already have permission in place.

there is no need to apologize for asking questions. that is a good way to see if someone else has the answer :slight_smile: sometimes it just takes a while to get everything worked out.

2 Likes