There are no APT sources configured in /etc/apt/sources.list or /etc/apt/sources.list.d.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Committed
|
Critical
|
Mitch Burton | ||
landscape-client (Ubuntu) |
Fix Released
|
Critical
|
Mitch Burton |
Bug Description
[ Impact ]
* 24.04 changed apt sources to deb822 format. This causes landscape-client's
package-reporter to report errors to landscape-server, specifically "There
are no APT sources configured in /etc/apt/
/etc/
does impact reporting of configured APT sources.
* This affects all releases with deb822 sources - noble onward - and so should
be applied to noble
* The patch turns on deb822 support only if it is available to preserve
backward compat
[ Test Plan ]
* Reproducing the bug should requires registering a client with a Landscape
Server
sudo apt install landscape-client
sudo landscape-config # progress through the wizard
* After some time, server should report "1 computer is having issues reporting
packages" in the alerts panel in the top right.
* Navigating to /account/
lists the registered computer.
* Clicking the alert in the alerts panel shows the registered computer in the
list, along with Error output "There are no APT sources configured in
/etc/
[ Where problems could occur ]
* Reporting on non-deb822 *.list sources could break, alone or when present in
combination with deb822 sources.
* Landscape package activities: install, remove, upgrade could fail or could
fail to report packages after they complete.
* This is a change to landscape/lib, which is also used in landscape-sysinfo,
part of motd. If it breaks, it could cause issues in the login MOTD.
[ Other Info ]
* Landscape server can still instruct the client to write non-deb822 sources,
this fix only targets reporting of deb822 sources, not configuration of
sources.
=== ORIGINAL BUG REPORT FOLLOWS ===
It looks like 24.04 is changing how apt sources work..
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
$ cat /etc/apt/
deb http://
# deb-src http://
deb http://
# deb-src http://
deb http://
# deb-src http://
deb http://
# deb-src http://
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
$ cat /etc/apt/
# Ubuntu sources have moved to /etc/apt/
$ cat /etc/apt/
Types: deb
URIs: http://
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/
Types: deb
URIs: http://
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/
With this, Landscape is now reporting an alert "Package reporting issues":
There are no APT sources configured in /etc/apt/
Related branches
- Andreas Hasenack: Approve
-
Diff: 143 lines (+122/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/2062561-fix-deb822-sources.patch (+114/-0)
debian/patches/series (+1/-0)
- Andreas Hasenack: Needs Fixing
- Ubuntu Sponsors: Pending requested
-
Diff: 143 lines (+122/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/2062561-fix-deb822-sources.patch (+114/-0)
debian/patches/series (+1/-0)
Changed in landscape-client: | |
assignee: | nobody → Mitch Burton (mitchburton) |
Changed in landscape-client (Ubuntu): | |
assignee: | nobody → Mitch Burton (mitchburton) |
Changed in landscape-client (Ubuntu): | |
importance: | Undecided → Critical |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
description: | updated |
I'm not seeing the "Package reporting issues" error against the Production SaaS Landscape. This is on noble
ubuntu@new-hippo:~$ cat /etc/lsb-release RELEASE= 24.04 CODENAME= noble DESCRIPTION= "Ubuntu Noble Numbat (development branch)"
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
Using version 24.02-0ubuntu4 of landscape-client. Can you give me more information? landscape/ package- reporter. log?
Which Landscape server version are you registering the client against?
Anything interesting in /var/log/