Hi.

First of all:
Sorry, I am probably reporting again(?) for the wrong issue(?)

I have fully updated my ubuntu (see all the version information in the command 
output print below).
However, my problem mentioned in 
https://bugs.launchpad.net/cloud-images/+bug/1943049/comments/43 still persists:
I cannot install curl with &&-chained commands (and if I install it without 
using the &&-chain, it fails to access an url).
Therefore, I cannot use curl to access a website (see 
https://bugs.launchpad.net/cloud-images/+bug/1943293, marked as duplicate of 
the problem in this thread).
(Therefore, git on a https repo would not work either.)

As said, I am not sure whether the new release or fix was supposed to solve 
this problem or whether I am commenting on a wrong topic.
Nevertheless, here is the current state of my problem:

1. The chain "apt-get update && apt-get install -y curl" will fail.
I think concatenating these commands with "&&" may be common in a docker build, 
therefore this may still be considered as an issue.

2. "apt-get install -y curl" does install curl, though, while printing
some error message.

3. "curl https://bing.com"; still fails with "curl: (6) getaddrinfo()
thread failed to start", which was my originally reported problem in
https://bugs.launchpad.net/cloud-images/+bug/1943293.

Below, please find the complete command chain and output:

$ docker --version
Docker version 20.10.7, build 20.10.7-0ubuntu1~21.04.2

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.04
Release:        21.04
Codename:       hirsute

$ uname -a
Linux laptop 5.11.0-37-generic #41-Ubuntu SMP Mon Sep 20 16:39:20 UTC 2021 
x86_64 x86_64 x86_64 GNU/Linux

$ sudo docker run --rm -it --entrypoint=/bin/bash "ubuntu:21.10"
Unable to find image 'ubuntu:21.10' locally
21.10: Pulling from library/ubuntu
6122078cc60f: Pull complete 
Digest: sha256:203d16099ec9f0529f1fd6e7f33cef02fc637bfae1d9d5721f733e59d4d90bad
Status: Downloaded newer image for ubuntu:21.10

root@5ec4cc137ca7:/# uname -a 
Linux 5ec4cc137ca7 5.11.0-37-generic #41-Ubuntu SMP Mon Sep 20 16:39:20 UTC 
2021 x86_64 x86_64 x86_64 GNU/Linux

root@5ec4cc137ca7:/# apt-get update && apt-get install -y curl
Get:1 http://security.ubuntu.com/ubuntu impish-security InRelease [90.7 kB]    
Get:2 http://archive.ubuntu.com/ubuntu impish InRelease [269 kB]               
Get:3 http://archive.ubuntu.com/ubuntu impish-updates InRelease [90.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu impish-backports InRelease [90.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu impish/multiverse amd64 Packages [255 kB]
Get:6 http://archive.ubuntu.com/ubuntu impish/restricted amd64 Packages [119 kB]
Get:7 http://archive.ubuntu.com/ubuntu impish/universe amd64 Packages [16.7 MB]
Get:8 http://archive.ubuntu.com/ubuntu impish/main amd64 Packages [1809 kB]     
                                                                                
            
Fetched 19.5 MB in 13s (1492 kB/s)                                              
                                                                                
            
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke 'rm -f 
/var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb 
/var/cache/apt/*.bin || true'
E: Sub-process returned an error code

root@5ec4cc137ca7:/# curl https://bing.com
bash: curl: command not found

# apt-get install -y curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  ca-certificates libbrotli1 libcurl4 libldap-2.5-0 libldap-common 
libnghttp2-14 libpsl5 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db 
libssh-4 openssl
  publicsuffix
Suggested packages:
  libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal 
libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql
The following NEW packages will be installed:
  ca-certificates curl libbrotli1 libcurl4 libldap-2.5-0 libldap-common 
libnghttp2-14 libpsl5 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db 
libssh-4 openssl
  publicsuffix
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 2322 kB of archives.
After this operation, 6122 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu impish/main amd64 openssl amd64 
1.1.1l-1ubuntu1 [651 kB]
Get:2 http://archive.ubuntu.com/ubuntu impish/main amd64 ca-certificates all 
20210119ubuntu1 [149 kB]
Get:3 http://archive.ubuntu.com/ubuntu impish/main amd64 libpsl5 amd64 
0.21.0-1.2 [53.5 kB]
Get:4 http://archive.ubuntu.com/ubuntu impish/main amd64 publicsuffix all 
20210108.1309-1 [116 kB]
Get:5 http://archive.ubuntu.com/ubuntu impish/main amd64 libbrotli1 amd64 
1.0.9-2build2 [274 kB]
Get:6 http://archive.ubuntu.com/ubuntu impish/main amd64 libsasl2-modules-db 
amd64 2.1.27+dfsg-2.1build1 [14.6 kB]
Get:7 http://archive.ubuntu.com/ubuntu impish/main amd64 libsasl2-2 amd64 
2.1.27+dfsg-2.1build1 [46.1 kB]
Get:8 http://archive.ubuntu.com/ubuntu impish/main amd64 libldap-2.5-0 amd64 
2.5.6+dfsg-1~exp1ubuntu1 [186 kB]
Get:9 http://archive.ubuntu.com/ubuntu impish/main amd64 libnghttp2-14 amd64 
1.43.0-1 [72.5 kB]
Get:10 http://archive.ubuntu.com/ubuntu impish/main amd64 librtmp1 amd64 
2.4+20151223.gitfa8646d.1-2build2 [55.0 kB]
Get:11 http://archive.ubuntu.com/ubuntu impish/main amd64 libssh-4 amd64 
0.9.6-1 [185 kB]
Get:12 http://archive.ubuntu.com/ubuntu impish/main amd64 libcurl4 amd64 
7.74.0-1.3ubuntu2 [273 kB]
Get:13 http://archive.ubuntu.com/ubuntu impish/main amd64 curl amd64 
7.74.0-1.3ubuntu2 [179 kB]
Get:14 http://archive.ubuntu.com/ubuntu impish/main amd64 libldap-common all 
2.5.6+dfsg-1~exp1ubuntu1 [18.9 kB]
Get:15 http://archive.ubuntu.com/ubuntu impish/main amd64 libsasl2-modules 
amd64 2.1.27+dfsg-2.1build1 [48.7 kB]
Fetched 2322 kB in 5s (498 kB/s)             
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package openssl.
(Reading database ... 4386 files and directories currently installed.)
Preparing to unpack .../00-openssl_1.1.1l-1ubuntu1_amd64.deb ...
Unpacking openssl (1.1.1l-1ubuntu1) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../01-ca-certificates_20210119ubuntu1_all.deb ...
Unpacking ca-certificates (20210119ubuntu1) ...
Selecting previously unselected package libpsl5:amd64.
Preparing to unpack .../02-libpsl5_0.21.0-1.2_amd64.deb ...
Unpacking libpsl5:amd64 (0.21.0-1.2) ...
Selecting previously unselected package publicsuffix.
Preparing to unpack .../03-publicsuffix_20210108.1309-1_all.deb ...
Unpacking publicsuffix (20210108.1309-1) ...
Selecting previously unselected package libbrotli1:amd64.
Preparing to unpack .../04-libbrotli1_1.0.9-2build2_amd64.deb ...
Unpacking libbrotli1:amd64 (1.0.9-2build2) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../05-libsasl2-modules-db_2.1.27+dfsg-2.1build1_amd64.deb 
...
Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg-2.1build1) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../06-libsasl2-2_2.1.27+dfsg-2.1build1_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.27+dfsg-2.1build1) ...
Selecting previously unselected package libldap-2.5-0:amd64.
Preparing to unpack .../07-libldap-2.5-0_2.5.6+dfsg-1~exp1ubuntu1_amd64.deb ...
Unpacking libldap-2.5-0:amd64 (2.5.6+dfsg-1~exp1ubuntu1) ...
Selecting previously unselected package libnghttp2-14:amd64.
Preparing to unpack .../08-libnghttp2-14_1.43.0-1_amd64.deb ...
Unpacking libnghttp2-14:amd64 (1.43.0-1) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../09-librtmp1_2.4+20151223.gitfa8646d.1-2build2_amd64.deb 
...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build2) ...
Selecting previously unselected package libssh-4:amd64.
Preparing to unpack .../10-libssh-4_0.9.6-1_amd64.deb ...
Unpacking libssh-4:amd64 (0.9.6-1) ...
Selecting previously unselected package libcurl4:amd64.
Preparing to unpack .../11-libcurl4_7.74.0-1.3ubuntu2_amd64.deb ...
Unpacking libcurl4:amd64 (7.74.0-1.3ubuntu2) ...
Selecting previously unselected package curl.
Preparing to unpack .../12-curl_7.74.0-1.3ubuntu2_amd64.deb ...
Unpacking curl (7.74.0-1.3ubuntu2) ...
Selecting previously unselected package libldap-common.
Preparing to unpack .../13-libldap-common_2.5.6+dfsg-1~exp1ubuntu1_all.deb ...
Unpacking libldap-common (2.5.6+dfsg-1~exp1ubuntu1) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../14-libsasl2-modules_2.1.27+dfsg-2.1build1_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.27+dfsg-2.1build1) ...
Setting up libpsl5:amd64 (0.21.0-1.2) ...
Setting up libbrotli1:amd64 (1.0.9-2build2) ...
Setting up libsasl2-modules:amd64 (2.1.27+dfsg-2.1build1) ...
Setting up libnghttp2-14:amd64 (1.43.0-1) ...
Setting up libldap-common (2.5.6+dfsg-1~exp1ubuntu1) ...
Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg-2.1build1) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build2) ...
Setting up libsasl2-2:amd64 (2.1.27+dfsg-2.1build1) ...
Setting up libssh-4:amd64 (0.9.6-1) ...
Setting up openssl (1.1.1l-1ubuntu1) ...
Setting up publicsuffix (20210108.1309-1) ...
Setting up libldap-2.5-0:amd64 (2.5.6+dfsg-1~exp1ubuntu1) ...
Setting up ca-certificates (20210119ubuntu1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based 
frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 
78.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the 
Term::ReadLine module) (@INC contains: /etc/perl 
/usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 
/usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 
/usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 
/usr/share/perl/5.32 /usr/local/lib/site_perl) at 
/usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Updating certificates in /etc/ssl/certs...
128 added, 0 removed; done.
Setting up libcurl4:amd64 (7.74.0-1.3ubuntu2) ...
Setting up curl (7.74.0-1.3ubuntu2) ...
Processing triggers for libc-bin (2.34-0ubuntu2) ...
Processing triggers for ca-certificates (20210119ubuntu1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
E: Problem executing scripts DPkg::Post-Invoke 'rm -f 
/var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb 
/var/cache/apt/*.bin || true'
E: Sub-process returned an error code

# curl https://bing.com
curl: (6) getaddrinfo() thread failed to start


All the best,
   Thomas.

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

Title:
  Docker ubuntu:impish: Problem executing scripts DPkg::Post-Invoke 'rm
  -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb
  /var/cache/apt/*.bin || true'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1943049/+subscriptions


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

Reply via email to