apt-clone does not save or restore deb822 sources

Bug #2057963 reported by Nick Rosbrook
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-clone (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

This can be observed with the following on noble:

root@n2:~# apt policy apt-clone
apt-clone:
  Installed: 0.4.3+nmu2
  Candidate: 0.4.3+nmu2
  Version table:
 *** 0.4.3+nmu2 500
        500 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages
        100 /var/lib/dpkg/status
root@n2:~# ls /etc/apt/sources.list /etc/apt/sources.list.d/
/etc/apt/sources.list

/etc/apt/sources.list.d/:
ubuntu.sources
root@n2:~# ls /etc/apt/sources.list.d/
ubuntu.sources
root@n2:~# apt-clone clone test.tar.gz
not installable:
version mismatch: dosfstools, console-setup-linux, gdisk, cloud-init, keyboard-configuration, console-setup

Note that you can use --with-dpkg-repack to include those packages in the clone file.
root@n2:~# tar xvf test.tar.gz
./var/lib/apt-clone/uname
./var/lib/apt-clone/installed.pkgs
./var/lib/apt-clone/foreign.pkgs
./var/lib/apt-clone/extended_states
./etc/apt/sources.list
./etc/apt/sources.list.d/
./etc/apt/preferences.d/
./etc/apt/preferences.d/ubuntu-pro-esm-apps
./etc/apt/preferences.d/ubuntu-pro-esm-infra
./etc/apt/trusted.gpg.d/
./etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg
./etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg

Since we are going to deb822 by default, it would be nice to fix this since apt-clone is often used for debugging, especially for bug reports about upgrades.

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-clone - 0.4.3+nmu2ubuntu1

---------------
apt-clone (0.4.3+nmu2ubuntu1) noble; urgency=medium

  * apt-clone: support deb822 sources on clone/restore (LP: #2057963)

 -- Nick Rosbrook <email address hidden> Thu, 14 Mar 2024 15:18:31 -0400

Changed in apt-clone (Ubuntu):
status: New → Fix Released
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.