0

Ubuntu 16.04LTS -> 18.04LTS upgrade failure

Yes it was a long in the tooth install. But it finally got a release upgrade. Since then I haven't been able to get apt to install anything much looking for dosemu but has no targets, and update spews errors about InRelease not containing bionic.

W: Skipping acquire of configured file 'bionic/cnf/Commands-amd64' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component '

#------------------------------------------------------------------------------#
#                            OFFICIAL UBUNTU REPOS                             #
#------------------------------------------------------------------------------#


###### Ubuntu Main Repos
deb http://au.archive.ubuntu.com/ubuntu/ focal bionic main restricted universe multiverse
deb-src http://au.archive.ubuntu.com/ubuntu/ focal bionic main restricted universe

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu focal bionic partner
deb-src http://archive.canonical.com/ubuntu focal bionic partner
deb http://archive.ubuntu.com/ubuntu focal bionic main # auto generated by ubuntu-release-upgrader

deb http://in.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe
deb-src http://in.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe

deb http://in.archive.ubuntu.com/ubuntu/ focal-security main restricted universe
deb-src http://in.archive.ubuntu.com/ubuntu/ focal-security main restricted universe

deb http://in.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe
deb-src http://in.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe

The google-fu gives all sorts of strange answers, but nothing I can find fixes this issue.

Regards, A

9
  • Can you update your question to include the contents of /etc/apt/sources.list? You'll probably need to make some edits in there. – user1091774 Mar 1 at 5:46
  • There should not be distribution 'focal' listed because you only upgraded to bionic. – jarno Mar 1 at 6:39
  • Added sources.list – A.Adverse Mar 1 at 7:50
  • 1
    What does lsb_release -r tell? – jarno Mar 1 at 9:03
  • lsb_release -r = 18.04 – A.Adverse Mar 1 at 11:17
2

You have to manually edit /etc/apt/sources.list and possibly some files under /etc/apt/sources.list.d/ to not contain words focal or focal-*, but contain respective bionic and bionic-*, instead. (Only one of them per line.)

Not the answer you're looking for? Browse other questions tagged or ask your own question.