Public bug reported: There might be two issues here. One is that I was using the latest nightly version, but I had "unmodern" sources. Should those be shipped already modernized or is the detection tool faulty? More severe issue is that once I followed the instructions, I ended up having malformed entries in the sources file.
This is simplified list of things that I did, because I did other things also, which I think are unrelated to this issue. I am not affected by this at the moment, I just wanted to help with testing so if you feel that this report is of no use to you, feel free to just close it. 1. I downloaded and tested the nightly resolute-desktop-amd64.iso image. 2. I did not install, just started in Live-mode. 3. I started the command line: 4. sudo apt update Ign:1 cdrom://Ubuntu 26.04 LTS _Resolute Raccoon_ - Daily amd64 (20260316) resolute InRelease Hit:2 cdrom://Ubuntu 26.04 LTS _Resolute Raccoon_ - Daily amd64 (20260316) resolute Release Hit:4 http://security.ubuntu.com/ubuntu resolute-security InRelease Hit:5 http://archive.ubuntu.com/ubuntu resolute InRelease Hit:6 http://archive.ubuntu.com/ubuntu resolute-updates InRelease Hit:7 http://archive.ubuntu.com/ubuntu resolute-backports InRelease 180 packages can be upgraded. Run 'apt list --upgradable' to see them. Notice: Some sources can be modernized. Run 'apt modernize-sources' to do so. 5. I followed the instructions and executed 'apt modernize-sources' The following files need modernizing: - /etc/apt/sources.list Modernizing will replace .list files with the new .sources format, add Signed-By values where they can be determined automatically, and save the old files into .list.bak files. This command supports the 'signed-by' and 'trusted' options. If you have specified other options inside [] brackets, please transfer them manually to the output files; see sources.list(5) for a mapping. For a simulation, respond N in the following prompt. Rewrite 1 sources? [Y/n] y Modernizing /etc/apt/sources.list... - Writing /etc/apt/sources.list.d/ubuntu.sources 6. I then tried to execute apt update, but got this error: Error: Malformed entry 3 in sources file /etc/apt/sources.list.d/ubuntu.sources (URI parse) Error: The list of sources could not be read. 7. Here is content of ubuntu.sources: # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. ## Ubuntu distribution repository ## ## The following settings can be adjusted to configure which packages to use from Ubuntu. ## Mirror your choices (except for URIs and Suites) in the security section below to ## ensure timely security updates. ## ## Types: Append deb-src to enable the fetching of source package. ## URIs: A URL to the repository (you may add multiple URLs) ## Suites: The following additional suites can be configured ## <name>-updates - Major bug fix updates produced after the final release of the ## distribution. ## <name>-backports - 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. ## Components: Aside from main, the following components can be added to the list ## restricted - Software that may not be under a free license, or protected by patents. ## universe - Community maintained packages. Software in this repository receives maintenance ## from volunteers in the Ubuntu community, or a 10 year security maintenance ## commitment from Canonical when an Ubuntu Pro subscription is attached. ## multiverse - Community maintained of restricted. 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. ## ## See the sources.list(5) manual page for further settings. Types: deb URIs: http://archive.ubuntu.com/ubuntu/ Suites: resolute resolute-updates resolute-backports Components: main universe restricted multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg ## Ubuntu security updates. Aside from URIs and Suites, ## this should mirror your choices in the previous section. Types: deb URIs: http://security.ubuntu.com/ubuntu/ Suites: resolute-security Components: main universe restricted multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg # Modernized from /etc/apt/sources.list Types: deb URIs: cdrom://Ubuntu 26.04 LTS _Resolute Raccoon_ - Daily amd64 (20260316)/ Suites: resolute Components: main restricted Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg ** Affects: ubuntu Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2145084 Title: Error: Malformed entry 3 in sources file after apt modernize-sources To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/2145084/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
