Disabled repositories after upgrade

After upgrading from Ubuntu 18.04 to 18.10 you may have some repositories that have been disabled.

This guide will show you how to re-enable the repositories on your new release to ensure that your applications contiue to recieve updates.


1 Re-enable Repositories

Open the GNOME Launcher and click on Terminal. Type in the below command which will re-enable any repositories that were disabled pre-upgrade:

for f in /etc/apt/sources.list.d/*.list; do sudo sed -i 's/bionic/cosmic/g' $f; sudo sed -i 's/^# (.*) # disabled on upgrade to.*/\1/g' $f;done

2 Check for errors

Next, run the below command to check for updates:

sudo apt update

If there are any issues, they will be displayed in the below format:

E: The repository 'http://ppa.launchpad.net/example/project/ubuntu bionic Release' does not have a Release file.

3 No release file

If you see any errors the repository does not support your current release and should be removed.

sudo add-apt-repository --remove ppa:%PPA_Name%/ppa

For example, for the starlabs repositories (which actually do have bionic and cosmic release files):

sudo add-apt-repository --remove ppa:starlabs/ppa
sudo apt upgrade

To re-add the repository:

sudo add-apt-repository ppa:starlabs/ppa

4 Perform application upgrades

To perform any upgrade that is pending post-upgrade from the repositories:

sudo apt update
sudo apt upgrade

5 Further information

For further information on managing repositories please see ourĀ Manage PPA guide here.

Contact Us

Not finding what you're looking for? Contact Us Directly