Comment 12 for bug 1966849

Revision history for this message
NotTheDr01ds (notthedr01ds) wrote (last edit ):

Tested and verified. Note that there is no original TEST CASE, but the original issue is clearly reproducible. Used the following TEST CASE to verify:

1. Installed 22.04 in WSL2 (for performance reasons until everything is updated)
2. sudo apt update && sudo apt upgrade -y
3. Installed my normal working environment (Fish shell, httpie, exa, etc. etc.)
4. Downloaded https://gnu.askapache.com/gzip/gzip-1.12.tar.gz (as a test gzip'd file)
5. tar xvzf gzip-1.12.tar.gz: Succeeded (this is still WSL2)
6. Removed resulting directory
7. Exited Ubuntu/WSL
8. Converted to WSL1 with "wsl --set-version Ubuntu-22.04 1"
9. Restarted Ubuntu-22.04 under WSL1
10. tar xvzf gzip-1.12.tar.gz: Failed with "/usr/bin/gzip: 1: ELF: not found"
11. gunzip gzip-1.12.tar.gz: Failed with "/usr/bin/gunzip: 57: exec: gzip: Exec format error"
12. sudo apt update && sudo apt upgrade -y: No updates
13. Added jammy-proposed to sources (as root) with:

cat <<EOF >/etc/apt/sources.list.d/ubuntu-$(lsb_release -cs)-proposed.list
# Enable Ubuntu proposed archive
deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-proposed restricted main multiverse universe
EOF

14. Set selective-install of gzip via (as root):

cat <<EOF >/etc/apt/preferences.d/proposed-updates
# Configure apt to allow selective installs of packages from proposed
Package: *
Pin: release a=$(lsb_release -cs)-proposed
Pin-Priority: 400
EOF

15. "sudo apt update"
16. Verified selective install is set via "sudo apt upgrade -s"
17. sudo apt install gzip/jammy-proposed
18. tar tvzf gzip-1.4.tar.gz: Succeeded
19. gunzip gzip-1.4.tar.gz: Succeeded
20. tar tvf gzip-1.4.tar: Succeeded (confirms successful gunzip)
21. tar xvf gzip-1.4.tar: Succeeded (Confirms successful gunzip)
22. gzip ~/.profile: Succeeded
23. gunzip ~/.profile.gz: Succeeded

apt info gzip

Package: gzip
Version: 1.10-4ubuntu4.1