Thanks Bryce for the PPA. I can confirm it does work:
# reproduce the problem: root@sudo-sru-lp1857036-test:~# sudo true sudo: setrlimit(RLIMIT_CORE): Operation not permitted
# get the fix from the PPA: root@sudo-sru-lp1857036-test:~# apt-add-repository -yus ppa:bryce/sudo-sru-lp1857036-setrlimit-in-lxc Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB] Get:2 http://ppa.launchpad.net/bryce/sudo-sru-lp1857036-setrlimit-in-lxc/ubuntu focal InRelease [17.6 kB] Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB] Get:5 http://ppa.launchpad.net/bryce/sudo-sru-lp1857036-setrlimit-in-lxc/ubuntu focal/main Sources [864 B] Get:6 http://ppa.launchpad.net/bryce/sudo-sru-lp1857036-setrlimit-in-lxc/ubuntu focal/main amd64 Packages [756 B] Get:7 http://ppa.launchpad.net/bryce/sudo-sru-lp1857036-setrlimit-in-lxc/ubuntu focal/main Translation-en [528 B] Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [261 kB] Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [102 kB] Get:10 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [28.4 kB] Get:11 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [7,560 B] Fetched 637 kB in 2s (389 kB/s) Reading package lists... Done root@sudo-sru-lp1857036-test:~# apt-get install -V sudo Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: sudo (1.8.31-1ubuntu1 => 1.8.31-1ubuntu2~focal1) 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 1,320 kB of archives. After this operation, 1,849 kB of additional disk space will be used. Get:1 http://ppa.launchpad.net/bryce/sudo-sru-lp1857036-setrlimit-in-lxc/ubuntu focal/main amd64 sudo amd64 1.8.31-1ubuntu2~focal1 [1,320 kB] Fetched 1,320 kB in 3s (495 kB/s) (Reading database ... 16712 files and directories currently installed.) Preparing to unpack .../sudo_1.8.31-1ubuntu2~focal1_amd64.deb ... Unpacking sudo (1.8.31-1ubuntu2~focal1) over (1.8.31-1ubuntu1) ... Setting up sudo (1.8.31-1ubuntu2~focal1) ...
# confirm the fix: root@sudo-sru-lp1857036-test:~# sudo true root@sudo-sru-lp1857036-test:~#
Thanks Bryce for the PPA. I can confirm it does work:
# reproduce the problem: sru-lp1857036- test:~# sudo true RLIMIT_ CORE): Operation not permitted
root@sudo-
sudo: setrlimit(
# get the fix from the PPA: sru-lp1857036- test:~# apt-add-repository -yus ppa:bryce/ sudo-sru- lp1857036- setrlimit- in-lxc security. ubuntu. com/ubuntu focal-security InRelease [107 kB] ppa.launchpad. net/bryce/ sudo-sru- lp1857036- setrlimit- in-lxc/ ubuntu focal InRelease [17.6 kB] archive. ubuntu. com/ubuntu focal InRelease archive. ubuntu. com/ubuntu focal-updates InRelease [111 kB] ppa.launchpad. net/bryce/ sudo-sru- lp1857036- setrlimit- in-lxc/ ubuntu focal/main Sources [864 B] ppa.launchpad. net/bryce/ sudo-sru- lp1857036- setrlimit- in-lxc/ ubuntu focal/main amd64 Packages [756 B] ppa.launchpad. net/bryce/ sudo-sru- lp1857036- setrlimit- in-lxc/ ubuntu focal/main Translation-en [528 B] archive. ubuntu. com/ubuntu focal-updates/main amd64 Packages [261 kB] archive. ubuntu. com/ubuntu focal-updates/main Translation-en [102 kB] archive. ubuntu. com/ubuntu focal-updates/ restricted amd64 Packages [28.4 kB] archive. ubuntu. com/ubuntu focal-updates/ restricted Translation-en [7,560 B] sru-lp1857036- test:~# apt-get install -V sudo 1ubuntu2~ focal1) ppa.launchpad. net/bryce/ sudo-sru- lp1857036- setrlimit- in-lxc/ ubuntu focal/main amd64 sudo amd64 1.8.31- 1ubuntu2~ focal1 [1,320 kB] 1.8.31- 1ubuntu2~ focal1_ amd64.deb ... 1ubuntu2~ focal1) over (1.8.31-1ubuntu1) ... 1ubuntu2~ focal1) ...
root@sudo-
Get:1 http://
Get:2 http://
Hit:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Fetched 637 kB in 2s (389 kB/s)
Reading package lists... Done
root@sudo-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
sudo (1.8.31-1ubuntu1 => 1.8.31-
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,320 kB of archives.
After this operation, 1,849 kB of additional disk space will be used.
Get:1 http://
Fetched 1,320 kB in 3s (495 kB/s)
(Reading database ... 16712 files and directories currently installed.)
Preparing to unpack .../sudo_
Unpacking sudo (1.8.31-
Setting up sudo (1.8.31-
# confirm the fix: sru-lp1857036- test:~# sudo true sru-lp1857036- test:~#
root@sudo-
root@sudo-