[Bug 2057963] [NEW] apt-clone does not save or restore deb822 sources

Nick Rosbrook 2057963 at bugs.launchpad.net
Thu Mar 14 19:10:09 UTC 2024


Public bug reported:

This can be observed with the following on noble:

root at 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 at n2:~# ls /etc/apt/sources.list /etc/apt/sources.list.d/
/etc/apt/sources.list

/etc/apt/sources.list.d/:
ubuntu.sources
root at n2:~# ls /etc/apt/sources.list.d/
ubuntu.sources
root at 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 at 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.

** Affects: apt-clone (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  apt-clone does not save or restore deb822 sources

Status in apt-clone package in Ubuntu:
  New

Bug description:
  This can be observed with the following on noble:

  root at 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 at n2:~# ls /etc/apt/sources.list /etc/apt/sources.list.d/
  /etc/apt/sources.list

  /etc/apt/sources.list.d/:
  ubuntu.sources
  root at n2:~# ls /etc/apt/sources.list.d/
  ubuntu.sources
  root at 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 at 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-clone/+bug/2057963/+subscriptions




More information about the foundations-bugs mailing list