Applying a package profile leaves unnecessary file in sources.list.d

Bug #2066938 reported by Mike Fry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
landscape-client (Ubuntu)
Invalid
Undecided
Mitch Burton

Bug Description

This is happening with Bionic, Focal & Jammy.

After applying a package profile, this happens.

sudo apt update
Get:1 file:/var/lib/landscape/client/package/binaries ./ InRelease
Ign:1 file:/var/lib/landscape/client/package/binaries ./ InRelease
Get:2 file:/var/lib/landscape/client/package/binaries ./ Release
Ign:2 file:/var/lib/landscape/client/package/binaries ./ Release
Get:3 file:/var/lib/landscape/client/package/binaries ./ Packages
Ign:3 file:/var/lib/landscape/client/package/binaries ./ Packages
Get:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Ign:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Get:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en
Ign:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en
Get:3 file:/var/lib/landscape/client/package/binaries ./ Packages
Ign:3 file:/var/lib/landscape/client/package/binaries ./ Packages
Get:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Ign:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Get:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en
Ign:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en
Get:3 file:/var/lib/landscape/client/package/binaries ./ Packages
Ign:3 file:/var/lib/landscape/client/package/binaries ./ Packages
Get:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Ign:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Get:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en
Ign:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en
Get:3 file:/var/lib/landscape/client/package/binaries ./ Packages
Ign:3 file:/var/lib/landscape/client/package/binaries ./ Packages
Get:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Ign:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Get:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en
Ign:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en
Get:3 file:/var/lib/landscape/client/package/binaries ./ Packages
Ign:3 file:/var/lib/landscape/client/package/binaries ./ Packages
Get:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Ign:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Get:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en
Ign:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en
Get:3 file:/var/lib/landscape/client/package/binaries ./ Packages
Ign:3 file:/var/lib/landscape/client/package/binaries ./ Packages
Get:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Ign:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Get:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en
Ign:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en
Get:3 file:/var/lib/landscape/client/package/binaries ./ Packages [847 B]
Get:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Ign:4 file:/var/lib/landscape/client/package/binaries ./ Translation-en_US
Get:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en
Ign:5 file:/var/lib/landscape/client/package/binaries ./ Translation-en

sudo ls -altr /etc/apt/sources.list.d
total 24
drwxr-xr-x 8 root root 4096 Apr 26 09:50 ..
drwxr-xr-x 2 root root 4096 May 8 09:54 .
-rw-r--r-- 1 root root 121 May 13 13:26 microsoft-ubuntu-prod.list
-rw-r--r-- 1 root root 71 May 13 13:26 _landscape-internal-facade.list

Revision history for this message
Mike Fry (mikefrygm) wrote :

The version of landscape-client/jammy,now 19.12-0ubuntu13 amd64 [installed]

Revision history for this message
Mitch Burton (mitchburton) wrote :

Hello, thanks for the bug report!

Would you mind providing some more information?

  * what steps did you follow to produce the bug? Just applied a package profile to a client?
  * what were the package constraints for your package profile?
  * does this behaviour persist in 23.02-0ubuntu1~22.04.2, the version of landscape-client available from jammy-updates?
  * what are the contents of the "unnecessary files", if you can share them?

Changed in landscape-client (Ubuntu):
status: New → Incomplete
assignee: nobody → Mitch Burton (mitchburton)
Revision history for this message
Mike Fry (mikefrygm) wrote :

Hi Mitch.
Yes, to produce the bug several time, all I did was apply a package profile to several computers.
I have a profile that consists of several packages to be installed. The contraint is any version since I want the latest version.
The behavior consists in the landscape-client/jammy,now 19.12-0ubuntu13 amd64. I don't see the version you referenced. Here is my source.list for jammy updates.
deb http://ubunturepo.epg.nam.gm.com/ubuntu jammy-updates main universe multiverse restricted

Here is the unnecessary files.
:/etc/apt/sources.list.d# cat _landscape-internal-facade.list
deb [ trusted=yes ] file:///var/lib/landscape/client/package/binaries ./

Revision history for this message
Mike Fry (mikefrygm) wrote :

Here is a listing of our repo for landscape-client
:/var/www/ubuntu/pool/main/l/landscape-client# ll
total 628
drwxr-xr-x 2 dlandscape_admin landscape 306 Mar 7 11:04 ./
drwxr-xr-x 607 dlandscape_admin landscape 24576 Mar 19 09:23 ../
-rwxr-xr-x 1 dlandscape_admin landscape 110252 Apr 4 2022 landscape-client_19.12-0ubuntu13_amd64.deb*
-rwxr-xr-x 1 dlandscape_admin landscape 108492 Mar 22 2022 landscape-client_19.12-0ubuntu4.3_amd64.deb*
-rwxr-xr-x 1 dlandscape_admin landscape 108448 Apr 15 2020 landscape-client_19.12-0ubuntu4_amd64.deb*
-rwxr-xr-x 1 dlandscape_admin landscape 86386 Apr 4 2022 landscape-common_19.12-0ubuntu13_amd64.deb*
-rwxr-xr-x 1 dlandscape_admin landscape 86440 Mar 22 2022 landscape-common_19.12-0ubuntu4.3_amd64.deb*
-rwxr-xr-x 1 dlandscape_admin landscape 86704 Apr 15 2020 landscape-common_19.12-0ubuntu4_amd64.deb*

Revision history for this message
Mitch Burton (mitchburton) wrote :

Hi Mike,

The _landscape-internal-facade.list file is a file created to work around LP: #1736576, which implies that package profiles on bionic and up will break on apt-secure verification without this file.

As this seems to be intended behaviour, I'm going to close this bug - feel free to reopen it if you disagree.

Changed in landscape-client (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.