Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install on WSL2 Ubuntu LTS 20.04 dpkg returned an error code (1) #160

Open
crtl opened this issue Feb 1, 2023 · 0 comments
Open
Labels

Comments

@crtl
Copy link

crtl commented Feb 1, 2023

Im trying to follow the guide from https://docs.aws.amazon.com/efs/latest/ug/installing-amazon-efs-utils.html#installing-other-distro but it does not seem to work on WSL2 Ubuntu 20.04 Trying to install the build .deb package returns following error:

sudo apt-get -y install ./build/amazon-efs-utils*deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'amazon-efs-utils' instead of './build/amazon-efs-utils-1.34.5-1_all.deb'
The following additional packages will be installed:
  stunnel4
Suggested packages:
  logcheck-database
The following NEW packages will be installed:
  amazon-efs-utils stunnel4
0 upgraded, 2 newly installed, 0 to remove and 12 not upgraded.
Need to get 191 kB/252 kB of archives.
After this operation, 530 kB of additional disk space will be used.
Get:1 /home/marvin/efs-utils/build/amazon-efs-utils-1.34.5-1_all.deb amazon-efs-utils all 1.34.5 [60.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 stunnel4 amd64 3:5.56-1 [191 kB]
Fetched 191 kB in 0s (1032 kB/s)
Selecting previously unselected package stunnel4.
(Reading database ... 55402 files and directories currently installed.)
Preparing to unpack .../stunnel4_3%3a5.56-1_amd64.deb ...
Unpacking stunnel4 (3:5.56-1) ...
Selecting previously unselected package amazon-efs-utils.
Preparing to unpack .../amazon-efs-utils-1.34.5-1_all.deb ...
Unpacking amazon-efs-utils (1.34.5) ...
Setting up stunnel4 (3:5.56-1) ...
Warning: The home dir /var/run/stunnel4 you specified can't be accessed: No such file or directory
Adding system user `stunnel4' (UID 117) ...
Adding new group `stunnel4' (GID 125) ...
Adding new user `stunnel4' (UID 117) with group `stunnel4' ...
Not creating home directory `/var/run/stunnel4'.
Setting up amazon-efs-utils (1.34.5) ...
dpkg (subprocess): unable to execute installed amazon-efs-utils package post-installation script (/var/lib/dpkg/info/amazon-efs-utils.postinst): No such file or directory
dpkg: error processing package amazon-efs-utils (--configure):
 installed amazon-efs-utils package post-installation script subprocess returned error exit status 2
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.19) ...
Errors were encountered while processing:
 amazon-efs-utils
E: Sub-process /usr/bin/dpkg returned an error code (1)

System:

cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
@RyanStan RyanStan added the bug label May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants