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

apt borked after installing ubuntu desktop? #10322

Closed
1 of 2 tasks
Hifilo opened this issue Jul 23, 2023 · 16 comments
Closed
1 of 2 tasks

apt borked after installing ubuntu desktop? #10322

Hifilo opened this issue Jul 23, 2023 · 16 comments

Comments

@Hifilo
Copy link

Hifilo commented Jul 23, 2023

Windows Version

Microsoft Windows [Version 10.0.19045.3086]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.1

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

apt install ubuntu-desktop

Expected Behavior

to still be able to use apt commands as normal after installing ubuntu-desktop

Actual Behavior

apt currently gives errors on updates

I can use ubuntu, but updating seems broken, & certain aliases like zshrc to launch .zshrc in code editor now give zsh: permission denied

I'm assuming it's because of running apt install ubuntu-desktop , but I'm not 100% sure. Maybe its a $PATH issue?

can this be fixed without a reinstall?

Failed to start apt-news.service: Transport endpoint is not connected See system logs and 'systemctl status apt-news.service' for details. 
Failed to start esm-cache.service: Transport endpoint is not connected See system logs and 'systemctl status esm-cache.service' for details. 
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] 
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease 
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB] 
Hit:4 https://cli.github.com/packages stable InRelease 
Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB] 
Hit:6 https://ppa.launchpadcontent.net/daniel-milde/gdu/ubuntu jammy InRelease 
Hit:8 https://ppa.launchpadcontent.net/neovim-ppa/stable/ubuntu jammy InRelease Hit:7 https://packagecloud.io/github/git-lfs/ubuntu jammy InRelease 

Fetched 337 kB in 1s (236 kB/s)  <-- hangs here

I've tried sudo dpkg --configure -a

Setting up xserver-xorg-input-all (1:7.7+23ubuntu2) ... 
Setting up whoopsie (0.2.77) ... 
Failed to preset unit: Transport endpoint is not connected /usr/bin/deb-systemd-helper: error: systemctl preset failed on whoopsie.path: No such file or directory Failed to reload daemon: Transport endpoint is not connected
[process exited with code 1 (0x00000001)]

Diagnostic Logs

No response

@Hifilo Hifilo changed the title messed up apt after installing ubuntu desktop? apt borked after installing ubuntu desktop? Jul 23, 2023
@OneBlue
Copy link
Collaborator

OneBlue commented Jul 25, 2023

Thank you for reporting this @Hifilo. Is systemd enabled in your distribution ?

What's the output of cat /etc/wsl.conf ?

@Hifilo
Copy link
Author

Hifilo commented Jul 25, 2023

Thank you for reporting this @Hifilo. Is systemd enabled in your distribution ?

What's the output of cat /etc/wsl.conf?

I can't confirm for this issue because I backed up & reset, but I think I had it enabled.

It is currently disabled & I haven't enabled it yet on this install. I can see whether running apt install ubuntu-desktop causes the same problem on a fresh install if necessary.

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 8, 2023

Ok. Closing for now but feel free to reopen if the issue happens again.

@OneBlue OneBlue closed this as completed Aug 8, 2023
@pwang2
Copy link

pwang2 commented Aug 26, 2023

I do have the same error today after accidentally install ubuntu-desktop in apt. All apt commands will hang..

image
image

@pwang2
Copy link

pwang2 commented Aug 26, 2023

a long clueless google leads me to a simple fix as below.

 sudo rm -rf /etc/acpi/events

@AlphaSierraHotel
Copy link

I found this by searching the error messages I was getting trying to update 22.04.

I ran 'sudo apt install ubuntu-desktop' command in a fresh new install of 18.04 yesterday and first noticed this behaviour in my 22.04 (default) distro today but that may be a coincidence. I checked my 22.04 dpkg.log and I had installed ubuntu-desktop on 22.04 in April of 2022. I haven't run the 22.04 distro for about 4 months but I know I've done updates periodically ever since the initial install - dpkg.log has 34 unique dates in it.

I don't have a problem with 18.04, just 22.04. Renaming the /etc/acpi/events folder did indeed allow me to perform the usual update procedures but I first had to kill the 'unattended-upgrade' process which seemed to have hung. Renaming the events folder back to the original name brings back the errors but allows the apt command to proceed. I'd be happy to provide additional input if needed. I do have systemd enabled.

C:\Users\allen>wsl --version
WSL version: 1.2.5.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.2134

@Yokinshita
Copy link

I have the same problem. I run "apt install ubuntu-desktop" but it failed. After that, every apt command will hang as well other commands like systemctl, reboot... I solved this probelm using the method from @pwang2 .
The cat /etc/wsl.conf outpus:
image
And the system details:
OS: Ubuntu 22.04.3 LTS on Windows 10 x86_64
Kernel: 5.15.123.1-microsoft-standard-WSL2
Shell: zsh 5.8.1

@1trapbox
Copy link

1trapbox commented Jan 9, 2024

@OneBlue
Just discovered this problem.
The error occurred after installing docker (by Enable integration with my default WSL distro)
#10322 (comment)
sudo rm -rf /etc/acpi/events
This directory was not found by ubuntu24.04

WSL version: 2.1.0.0
WSL Kernel: 6.1.21.2-microsoft-standard-WSL2+
Ubuntu 24.04
Docker Engine: 24.0.7
Docker Desktop: 24.0.7

@maffinyep
Copy link

I reproduced the same issue while following the official documentation https://docs.docker.com/desktop/wsl/

WSL version: 2.1.0.0
Kernel version: 5.15.137.3-1
Windows version: 10.0.23619.1000
Ubuntu 22.04.3 LTS
Docker Engine: 24.0.7

@Omico
Copy link

Omico commented Feb 8, 2024

a long clueless google leads me to a simple fix as below.

 sudo rm -rf /etc/acpi/events

Thanks, you saved my life! It works in my situation.

WSL version: 2.0.9.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3085
Docker Desktop 4.27.1 (136059)

@wingkuitsoi
Copy link

wingkuitsoi commented Feb 12, 2024

a long clueless google leads me to a simple fix as below.

 sudo rm -rf /etc/acpi/events

This error has gone for me:

/usr/bin/deb-systemd-helper: error: systemctl preset failed on xxxxx: No such file or directory

WSL version: 2.0.9.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3085

@Firsto
Copy link

Firsto commented Mar 7, 2024

same problem.

a long clueless google leads me to a simple fix as below.

 sudo rm -rf /etc/acpi/events

save my day.'

how it works?

@AstroJosePC
Copy link

same problem! I couldn't find a solution until I found the fix from @pwang2
This gave me a big scare.

Linux Distribution: Ubuntu-22.04
WSL version: 2.1.4.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22635.3286

@PelerYuan
Copy link

a long clueless google leads me to a simple fix as below.

 sudo rm -rf /etc/acpi/events

works pretty good on ubuntu22.04
WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3296

@pwang2
Copy link

pwang2 commented Sep 15, 2024

It is related to ACPI support. More details can be found here. #10059

It is suggested apt-mark hold the acpi related package before we run apt update. Still I found it is an unwise thing to install all the Bloatware from Ubuntu-desktop package to WSL.

sudo apt-mark hold acpid acpi-support

@Sherlock-feng
Copy link

a long clueless google leads me to a simple fix as below.

 sudo rm -rf /etc/acpi/events

resolve my problem
Setting up whoopsie (0.2.77) ...
Failed to preset unit: Transport endpoint is not connected
/usr/bin/deb-systemd-helper: error: systemctl preset failed on whoopsie.path: No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests