[Bug 2062042] Re: "No valid sources.list entry found" and "An upgrade might not succeed" when running "sudo do-dist-upgrade -d" on Ubuntu 23.10

Nick Rosbrook 2062042 at bugs.launchpad.net
Wed Apr 24 13:59:10 UTC 2024


Thanks. I was able to re-produce this using your sources. The problem is
that you have a mix of .sources and .list PPAs enabled, and since there
are at least _some_ .list still present, the upgrader expects Ubuntu
sources to be present in a .list file (even though they are already
found in /etc/apt/sources.list.d/ubuntu.sources).

So, this is clearly a bug in ubuntu-release-upgrader. But, as a
workaround, you should be able to either (a) temporarily remove your
/etc/apt/sources.list.d/*.list files, or (b) convert them to .sources.
The upgrade should work after that.

** Changed in: ubuntu-release-upgrader (Ubuntu)
       Status: Incomplete => Opinion

** Changed in: ubuntu-release-upgrader (Ubuntu)
       Status: Opinion => Confirmed

** Changed in: ubuntu-release-upgrader (Ubuntu)
     Assignee: (unassigned) => Nick Rosbrook (enr0n)

** Tags added: foundations-todo

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2062042

Title:
  "No valid sources.list entry found" and "An upgrade might not succeed"
  when running "sudo do-dist-upgrade -d" on Ubuntu 23.10

Status in ubuntu-release-upgrader package in Ubuntu:
  Confirmed

Bug description:
  I receive the message following message when performing a "sudo do-
  release-upgrade -d" on both my Ubuntu 23.10 system(s):

  Fetched 23.8 kB in 0s (0 B/s)                                                  
  Reading package lists... Done    
  Building dependency tree... Done 
  Reading state information... Done
  Fetched 0 B in 0s (0 B/s)                                                      

  Updating repository information

  No valid sources.list entry found

  While scanning your repository information no entry about mantic 
  could be found. 

  An upgrade might not succeed.

  Do you want to continue anyway?

  Continue [yN]

  The message "An upgrade might not succeed" is of concern, so obviously
  I can't proceed with the upgrade.

  My sources.list.d directory looks like this:

  cvpsmith at tars:/etc/apt/sources.list.d$ ls
  cubic-wizard-ubuntu-release-mantic.sources  slack.list
  google-chrome.sources                       spotify.sources
  jonaski-ubuntu-strawberry-lunar.sources     teams.list
  mozillateam-ubuntu-ppa-mantic.sources       ubuntu.sources
  nvhpc.list

  And here are the contents of "ubuntu.sources":

  Types: deb
  URIs: http://archive.ubuntu.com/ubuntu
  Suites: mantic mantic-updates mantic-security mantic-backports
  Components: main restricted universe multiverse
  Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

  As is evident, removing "vscode.list" from sources.list.d/ has no
  effect.

  lsb_release -rd
  No LSB modules are available.
  Description:	Ubuntu 23.10
  Release:	23.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2062042/+subscriptions




More information about the foundations-bugs mailing list