-
Notifications
You must be signed in to change notification settings - Fork 821
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
Comments
Thank you for reporting this @Hifilo. Is systemd enabled in your distribution ? What's the output of |
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 |
Ok. Closing for now but feel free to reopen if the issue happens again. |
a long clueless google leads me to a simple fix as below. sudo rm -rf /etc/acpi/events |
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 |
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 . |
@OneBlue WSL version: |
I reproduced the same issue while following the official documentation https://docs.docker.com/desktop/wsl/ WSL version: |
Thanks, you saved my life! It works in my situation. WSL version: |
This error has gone for me:
WSL version: 2.0.9.0 |
same problem.
save my day.' how it works? |
same problem! I couldn't find a solution until I found the fix from @pwang2 Linux Distribution: Ubuntu-22.04 |
works pretty good on ubuntu22.04 |
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.
|
resolve my problem |
Windows Version
Microsoft Windows [Version 10.0.19045.3086]
WSL Version
1.2.5.0
Are you using WSL 1 or WSL 2?
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 givezsh: 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?
I've tried
sudo dpkg --configure -a
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: