-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Updating/Removing package causes error if egpu-switcher has not been set up #25
Comments
Hmm, I didn't get this error when upgrading to the new version under Ubuntu 19.10. If it makes a difference, I upgraded with my eGPU plugged in and active. |
There were multiple issues running in parallel here. Which mean I couldn't uninstall and or install a newer version. |
I did not get this error either, but i've just received another report of the same problem #26. The problem seems to be the If the service does not exist yet, this script will fail. Which is pretty bad for a function that is called before every upgrade. It would probably be best to check if the systemd service exists before trying to disable it (https://unix.stackexchange.com/a/396638). I will have a look at it, once i've got some spare time. |
|
If I set it up now, will the upgrade work? :-) |
Yes. After executing |
OK. Do I need to have my eGPU plugged in to do that? If so it might need to wait until tonight after work, because I've got a bunch of docker stuff I'm running atm. |
Yes, you'll need to plug the EGPU in and authorize the Thunderbolt connection before running the setup. |
I can't upgrade or uninstall the package. I've tried:
I've got a similar error message each time: (Reading database ... 222939 files and directories currently installed.)
Removing egpu-switcher (0.11.1) ...
[info] Starting cleanup process
Failed to stop egpu.service: Unit egpu.service not loaded.
dpkg: error processing package egpu-switcher (--remove):
installed egpu-switcher package pre-removal script subprocess returned error exit status 5
Errors were encountered while processing:
egpu-switcher |
The trick is to run |
Apparently I need to have a gpu to do that:
|
try this:
The upgrade just needs to have a 'xorg.conf.backup.SOMETHING' script if I recall correctly. |
@mogwai @rvanlaar If you are unable to execute the setup (because you don't have an egpu at hand), you could try to create the sudo cp /usr/share/egpu-switcher/egpu.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable egpu.service I will introduce a fix for this issue, but unfortunately that won't affect already installed packages, because the error also occurs if you want to upgrade the package to the latest version. I'm sorry for the inconvenience. |
Hi @hertg, Thank you for your considerate reply.
|
Thank you very much @hertg
|
That worked thanks! Tom |
Thanks for the new release.
I get a problem when updating under ubuntu 19.10
The text was updated successfully, but these errors were encountered: