Unable to install certain systemd reliant packages/start services #9350
-
I'm testing installing some packages and I run into a number that (I believe) rely on systemd. during the setup I get a variety of failures (some listed below, most are 'transport endpoint not detected' It downloads the packages but once it gets to the install/configuration part at 74% it slows to a crawl and I start to see errors: Setting up acpi-support (0.144) ... Setting up openvpn (2.5.5-1ubuntu3.1) ... Setting up ubuntu-drivers-common (1:0.9.6.1) ... Setting up whoopsie (0.2.77) ... Setting up power-profiles-daemon (0.10.1-3) ... Setting up upower (0.99.17-1) ... Setting up secureboot-db (1.8) ... (this is just a sample) |
Beta Was this translation helpful? Give feedback.
Replies: 21 comments 22 replies
-
Also getting this error when:
|
Beta Was this translation helpful? Give feedback.
-
I report the same error using the |
Beta Was this translation helpful? Give feedback.
-
Same issue sudo apt install ubuntu-desktop |
Beta Was this translation helpful? Give feedback.
-
I'm getting a similar issue when attempting to query systemd status via systemctl or when trying to restart failed services via systemctl:
and
|
Beta Was this translation helpful? Give feedback.
-
this persists as of WSL 1.2.5.0 I tried to install gnome (again) and got hung at the exact same point |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
same issue with wsl2 and |
Beta Was this translation helpful? Give feedback.
-
Use this before installing ubuntu-desktop:
(The |
Beta Was this translation helpful? Give feedback.
-
@blakeduffey After installing ubuntu-desktop you should do the following:
Next create the file
After that connect to localhost:3390 using Remote Desktop. |
Beta Was this translation helpful? Give feedback.
-
apt purge -y acpid acpi-support modemmanager |
Beta Was this translation helpful? Give feedback.
-
I've been just getting into WSL2 and been trying to get Ubuntu Linux running with GNOME and I've been all over the place withtrying to get the desktop environment to "Just Work" stably with vcXsrv without crashing, or freezing and bloating with memory and cpu usage until it stopped running around 74% of a 'sudo apt install ubuntu-desktop', same issues as OP. I can say that I've got it working with much trial and error (for example, running just gnome-session at the end would just open the desktop environment over my entire dual monitor setup, with some methods letting it run albeit unstable and poorly, or not at all with a error screen on start). Although there are some quirks left to be ironed out (later, I got other things to do now that I've gotten to a great breakpoint). I figure this can get a few people having troubles started. First off, some specs.
Things I've learned:
Points of reference. The following quirks and features for setup that need to be looked at after this and written.
Start with vcxsrv. You can install the latest available version with chocolatey From a fresh install/start, follow along and do the following:
sudo mkdir /run/user/1000 'wsl --shutdown' from terminal 2, reboot in term 1 sudo vim ~/.bashrc, paste and save the following: 'wsl --shutdown' from terminal 2, 'wsl -d ubuntu' in term 1 //this should pull up a big table of services if everything went off correctly. q to quit. //don't run gnome-session, it doesn't/won't work. //And that's all I've got so far. Any additions are greatly welcome. |
Beta Was this translation helpful? Give feedback.
-
ACPI definitely bricks the install. Here are my steps (tested several times on Ubuntu 22.04). This uses xrdp vs vcXsrv. I find that approach cleaner.
Then create ~/.xsessionrc with the following contents:
Finally, install the GNOME deskop and xrdp
Connect via the standard Windows mstsc client to localhost:3390. This will provide a pretty good desktop environment, including multi-monitor support. FWIW - I have different variations on this set of docs that work for Budgie, Cinnamon, MATE, Xfce, Enlightenment, KDE, LXDE and LXQT. GNOME and KDE tend to be the most needy in terms of configuration. LXDE and LXQT require the least effort. |
Beta Was this translation helpful? Give feedback.
-
Budgie, Cinnamon, Mate, Xfce are all basically the same (save a change in startwm.sh)
Then edit /etc/xrdp/startwm.sh
Then install the desktop and bounce xrdp
|
Beta Was this translation helpful? Give feedback.
-
Nice work - Can't get it to work with 22.04 from Microsoft store. It starts but shuts down just as quickly. What am I doing wrong ? 21.10 and lower version of ubuntu works and i use https://gist.github.com/Ta180m/e1471413f62e3ed94e72001d42e77e22 Regards, |
Beta Was this translation helpful? Give feedback.
-
Fwiw all my testing is done with 22.04
…On Fri, Nov 10, 2023, 10:11 AM Mattias Vinberg ***@***.***> wrote:
Nice work - Can't get it to work with 22.04 from Microsoft store. It
starts but shuts down just as quickly.
What am I doing wrong ?
21.10 and lower version of ubuntu works and i use
https://gist.github.com/Ta180m/e1471413f62e3ed94e72001d42e77e22
Regards,
Vinberg
—
Reply to this email directly, view it on GitHub
<#9350 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABH7HTXEY374PQHEWDVDDTTYDY7ZBAVCNFSM6AAAAAATBRICGOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKMZUG4ZDE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Gnome - Easy setup ................................... Follow This and Paste in terminal - Ubuntu - No stress... =)sudo nano /etc/wsl.conf and add [boot] Nextln -s libcuda.so.1.1 libcuda.so.1 Nextsudo ln -s /dev/null /etc/systemd/system/acpid.service Nextsudo cp /etc/apt/sources.list /etc/apt/sources.list.bak Nextsudo apt install bash git npm wget curl nano sudo pipx dracut firefox -y Nextsudo pipx install hyfetch NextNow install and config GWSL GWSL can be find here - https://apps.microsoft.com/detail/gwsl/9NL6KD1H33V3?hl=en-US&gl=US Nextgit clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git And reboot Ubuntu Nextsudo apt install ubuntu-desktop gnome And reboot Ubuntu NextStart Gnome - type in terminal =) gnome-session Done and Enjoy https://i.imgur.com/O8KBqkc.png |
Beta Was this translation helpful? Give feedback.
-
Done, hard work =) Ubuntu 22.04 and Windows 11 Pro https://i.imgur.com/RResBn4.png Took me two days and of course I found another way to solve this big problem. |
Beta Was this translation helpful? Give feedback.
-
Ubuntu 23.10 - Gnome - Windows 11 Pro! https://i.imgur.com/HCJrAlc.png I will celebrate this with a whiskey! - I am on fire! |
Beta Was this translation helpful? Give feedback.
-
I keep having
|
Beta Was this translation helpful? Give feedback.
-
@blakeduffey 's answer on Gnome really works for me. Thanks! If you want to use xfce4 etc. other than GNOME, you still need to turn wslg off by some way. Any of the following ways should works:
BTW, these desktop envirenment processes may always leave some processes in the backend. It is a good idea to keep For some reason, if I use |
Beta Was this translation helpful? Give feedback.
Use this before installing ubuntu-desktop:
(The
hold
option prevents a package from being automatically installed, upgraded or removed.)