[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-06-01 Thread Gary Chapman
juliank - No. Our "overly complex" build must support environments
without direct access to the ubuntu servers. Therefore we download all
needed Ubuntu packages as a front-end step, putting them in an IBM-
internal archive. At build time, reprepro is used to put them in to a
local filesystem repo which then feeds debootstrap. The front-end step
certainly downloads from focal-updates, always using apt-get download.

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-06-01 Thread Julian Andres Klode
Hi Gary,

how do you invoke debootstrap so it uses packages from the the updates
pocket? I wasn't able to with --extra-suites=focal-updates, but I might
have missed something.

But then I guess we should actually release that fix too.

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-06-01 Thread Gary Chapman
The IBM Secure Service Container (SSC) environment uses Ubuntu 20.04 for
zLinux. During our periodic package refresh, apt 2.0.8 caused this
failure in the debootstrap step of our build process:

Setting up apt (2.0.8) ...
/var/lib/dpkg/info/apt.postinst: 65: /etc/kernel/postinst.d/apt-auto-removal: 
not found
dpkg: error processing package apt (--configure):
 installed apt package post-installation script subprocess returned error exit 
status 127

(as reported here). We backed off to apt 2.0.6 for current
sprint/release and joined this bug.

Downloaded this proposed fix
Get:1 http://us.ports.ubuntu.com/ubuntu-ports focal-proposed/main s390x apt 
s390x 2.0.9 [1,251 kB]
Get:2 http://us.ports.ubuntu.com/ubuntu-ports focal-proposed/main s390x 
libapt-pkg6.0 s390x 2.0.9 [772 kB]
Get:1 http://us.ports.ubuntu.com/ubuntu-ports focal-proposed/main s390x 
apt-utils s390x 2.0.9 [200 kB]

subsequent debootstrap:
Setting up libapt-pkg6.0:s390x (2.0.9) ...
Setting up apt (2.0.9) ...
Setting up apt-utils (2.0.9) ...
completes normally

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-06-01 Thread Patric Mai
Hi Everyone! 
Can confirm this resolves the issue on my end when bootstrapping latest ubuntu 
focal using mmdebstrap (0.4.1 from apt repo) and the proposed version of apt 
2.0.9 (by adding focal-proposed to sources list) - bootstrapping now works fine 
again without any errors!

Kind regards

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-05-31 Thread Chris Halse Rogers
Hello David, or anyone else affected,

Accepted apt into focal-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/apt/2.0.9 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: apt (Ubuntu Focal)
   Status: Confirmed => Fix Committed

** Tags added: verification-needed verification-needed-focal

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-05-23 Thread Julian Andres Klode
It might, I just might miss the right setting, I don't really know.

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-05-23 Thread David Röthlisberger
P.S. I have worked around this in my build system (by creating an empty
executable script at the location that apt.postinst is expecting before
I call dpkg --configure) so I'm not worried. When I reported this I
didn't realise it wouldn't affect debootstrap.

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-05-23 Thread David Röthlisberger
> Which tool were you using to bootstrap your system?

My own build system (which I wrote about for LWN:
https://lwn.net/Articles/821367/ ).

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-05-23 Thread Julian Andres Klode
@David I was able to reproduce this with mmdebstrap as it uses -updates
pocket, but not with debootstrap as it only uses the release pockets.
Which tool were you using to bootstrap your system?

It's possible we might just want keep the fix in -proposed and not
release it to updates if it does not affect the supported bootstrapping
tools.

** Description changed:

+ [Impact]
+ bootstrapping a system with apt that fixes #1968154 fails in focal and 
bionic, as they try to execute the config file that is being removed.
+ 
+ This is not a problem on updates, only on new installs, so impact is
+ limited to bootstrapping tools that enable -updates, such as mmdebstrap.
+ 
+ [Test case]
+ 
+ bootstrapping with -updates enabled can easily be tested with
+ mmdebstrap:
+ 
+ mmdebstrap -v focal ~/Projects/Ubuntu/Scratch/focal
+ 
+ for example, on focal:
+ 
+ Setting up apt (2.0.8) ...
+ /var/lib/dpkg/info/apt.postinst: 65: /etc/kernel/postinst.d/apt-auto-removal: 
not found
+ dpkg: error processing package apt (--configure):
+  installed apt package post-installation script subprocess returned error 
exit status 127
+ 
+ [Regression potential]
+ We remove 5 lines from the shell postinst script, there could be syntax 
errors? But then we'd see those during upgrades, so practically none.
+ 
+ [Original bug report]
  #1968154 removed `/etc/kernel/postinst.d/apt-auto-removal` in this patch:
  
https://git.launchpad.net/ubuntu/+source/apt/commit/?id=f9d2d993687c0d5223c241956ef6a0aabcf15bf0
  
  ...but `apt.postinst` still tries to run it:
  
- # create kernel autoremoval blacklist on update
- if dpkg --compare-versions "$2" lt 0.9.9.3; then
- /etc/kernel/postinst.d/apt-auto-removal
- fi
+ # create kernel autoremoval blacklist on update
+ if dpkg --compare-versions "$2" lt 0.9.9.3; then
+ /etc/kernel/postinst.d/apt-auto-removal
+ fi
  
  If I understand correctly, "$2" is the most-recently-configured-version,
  and if it's empty `dpkg --compare-versions lt` will evaluate to true.
  
  This fails when I'm building a focal (20.04) userspace from scratch:
  
- $ dpkg --configure -a
- [...]
- Setting up apt (2.0.8) ...
- /var/lib/dpkg/info/apt.postinst: 65: 
/etc/kernel/postinst.d/apt-auto-removal: not found
- dpkg: error processing package apt (--configure):
-  installed apt package post-installation script subprocess returned error 
exit status 127
+ $ dpkg --configure -a
+ [...]
+ Setting up apt (2.0.8) ...
+ /var/lib/dpkg/info/apt.postinst: 65: 
/etc/kernel/postinst.d/apt-auto-removal: not found
+ dpkg: error processing package apt (--configure):
+  installed apt package post-installation script subprocess returned error 
exit status 127
  
  It works with apt 2.0.6.

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-05-23 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: apt (Ubuntu Bionic)
   Status: New => Confirmed

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-05-23 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: apt (Ubuntu Focal)
   Status: New => Confirmed

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-05-23 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: apt (Ubuntu)
   Status: New => Confirmed

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-05-20 Thread Julian Andres Klode
Yup I'm going to push updated bionic and focal SRUs for this next week

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-05-20 Thread David Kalnischkies
jftr: I removed this if in git commit
938889b20268ec92be1bff67750f7adf03f52c1b, which was shipped with 2.1.12
– that might explain why it isn't effecting releases with later versions
and why it was missed.

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1974456] Re: regression: apt.postint fails if never previously configured

2022-05-20 Thread Julian Andres Klode
** Also affects: apt (Ubuntu Focal)
   Importance: Undecided
   Status: New

** Also affects: apt (Ubuntu Bionic)
   Importance: Undecided
   Status: New

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

Title:
  regression: apt.postint fails if never previously configured

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs