Plucky verification
===================

root@landscape-client:~# apt info landscape-client
Package: landscape-client
Version: 24.12-0ubuntu2.2
Priority: optional
Section: admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Landscape Team <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 680 kB
Depends: python3:any, debconf (>= 0.5) | debconf-2.0, libc6 (>= 2.34), 
landscape-common (= 24.12-0ubuntu2.2), python3-pycurl, python3-dbus, 
python3-yaml
Homepage: https://github.com/CanonicalLtd/landscape-client
Task: ubuntu-wsl
Download-Size: 128 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
Packages
Description: Landscape administration system client
 Landscape is a web-based tool for managing Ubuntu systems. This
 package is necessary if you want your machine to be managed in a
 Landscape account.
 .
 This package provides the Landscape client and requires a Landscape account.

Environment Sanity Check Before Applying any Profiles:
------------------------------------------------------

# Check contents of /etc/apt/
root@landscape-client:~# ls /etc/apt/
apt.conf.d  auth.conf.d  keyrings  preferences.d  sources.list  sources.list.d  
trusted.gpg.d

We see sources.list and sources.list.d, and sources.list correctly has
deprecation notice:

root@landscape-client:~# cat /etc/apt/sources.list
root@landscape-client:~# cat /etc/apt/sources.list
# Ubuntu sources have moved to the /etc/apt/sources.list.d/ubuntu.sources
# file, which uses the deb822 format. Use deb822-formatted .sources files
# to manage package sources in the /etc/apt/sources.list.d/ directory.
# See the sources.list(5) manual page for details.

# Check contents of /etc/apt/sources.list.d
root@landscape-client:~# ls /etc/apt/sources.list.d/
ubuntu.sources

For the sake of testing, place a test.list file in there
root@landscape-client:~# touch /etc/apt/sources.list.d/test.list

Test Application of Repository Profile
--------------------------------------
# Create a repository profile called "test-profile" in the dashboard and select 
"Associate to all instances" then wait a few minutes for the profile to be 
distributed to the client. Eventually the profile appears and the existing 
*.sources and *.list files move to *.sources.save and *.list.save

root@landscape-client:~# ls /etc/apt/sources.list.d/
landscape-test-profile.list  test.list.save  ubuntu.sources.save

Similarly, /etc/apt/sources.list is moved to sources.list.save and
sources.list is replaced to indicate that this machine's repositories
are Landscape-managed

root@landscape-client:~# ls /etc/apt/
apt.conf.d  auth.conf.d  keyrings  preferences.d  sources.list  sources.list.d  
sources.list.save  trusted.gpg.d

root@landscape-client:~# cat /etc/apt/sources.list
# Landscape manages repositories for this computer
# Original content of sources.list can be found in sources.list.save

Test Removal of Repository Profile
----------------------------------
# Remove the profile in the dashboard. Shortly after the client is updated and 
the landscape-test-profile.list is removed, 
/etc/apt/sources.list.d/*.sources.save and /etc/apt/sources.list.d/*.list.save 
successfully revert back to *.sources and *.list

root@landscape-client:~# ls /etc/apt/sources.list.d/
test.list  ubuntu.sources

As well, /etc/apt/sources.list.save moves back to /etc/apt/sources.list,
overwriting the "Landscape manages this computer's repositories" message

root@landscape-client:~# ls /etc/apt/
apt.conf.d  auth.conf.d  keyrings  preferences.d  sources.list  sources.list.d  
trusted.gpg.d

root@landscape-client:~# cat /etc/apt/sources.list
# Ubuntu sources have moved to the /etc/apt/sources.list.d/ubuntu.sources
# file, which uses the deb822 format. Use deb822-formatted .sources files
# to manage package sources in the /etc/apt/sources.list.d/ directory.
# See the sources.list(5) manual page for details.

To summarize:
Applying repository profile -> moves all .list and .sources to .save
Removing the repository profiles -> restores all .save files


** Tags removed: verification-needed-noble verification-needed-plucky
** Tags added: verification-done-noble verification-done-plucky

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2087852

Title:
  [FFe][SRU] Repository profiles only act on .list files and do not
  affect .source files

To manage notifications about this bug go to:
https://bugs.launchpad.net/landscape-client/+bug/2087852/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to