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

uninstalling borked my apt and nala on Kubuntu 22.04 #42

Open
neuthral opened this issue Dec 9, 2022 · 2 comments
Open

uninstalling borked my apt and nala on Kubuntu 22.04 #42

neuthral opened this issue Dec 9, 2022 · 2 comments
Labels

Comments

@neuthral
Copy link

neuthral commented Dec 9, 2022

i dont know what to do now, i run Kubuntu 22.04 KDE plasma-desktop

`Raw = False: [b'(Reading database ... 100%\r(Reading database ... 219772 files and directories currently installed.)\r\n']
line_fix = [b'(Reading database ... \r']

Raw = False: [b'Removing xsuspender (1.3-1) ...\r\n']

Raw = False: [b'dpkg: error processing package xsuspender (--remove):\r\n installed xsuspender package post-removal script subprocess returned error exit status 1\r\ndpkg: too many errors, stopping\r\n']
Data_Split = [b'dpkg: error processing package xsuspender (--remove):', b' installed xsuspender package post-removal script subprocess returned error exit status 1', b'dpkg: too many errors, stopping', b'']

Raw = False: [b'Errors were encountered while processing:\r\n xsuspender\r\nProcessing was halted because there were too many errors.\r\n']
Data_Split = [b'Errors were encountered while processing:', b' xsuspender', b'Processing was halted because there were too many errors.', b'']

['Traceback (most recent call last):\n', ' File "/usr/lib/python3/dist-packages/nala/dpkg.py", line 459, in run_install\n os._exit(apt.do_install(self.write_stream.fileno())) # type: ignore[attr-defined]\n', 'apt_pkg.Error: E:Sub-process /usr/bin/dpkg returned an error code (1)\n']`

@kernc
Copy link
Owner

kernc commented Dec 9, 2022

I'm not sure what went wrong, but this is xsuspender's debian post-removal script:

xsuspender/debian/postrm

Lines 21 to 34 in 9ccfdef

case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
if command -v pkill >/dev/null; then
pkill -TERM -f /usr/bin/xsuspender
fi
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac

Can you try again with increased verbosity so that we know what the error was? Probably missing one || true.

There's ways to work around it.

@zeevox
Copy link

zeevox commented Feb 9, 2023

For anyone in the same situation, I fixed my apt by manually deleting the files installed by xsuspender and then removing the xsuspender entry from /var/lib/dpkg/status.

@kernc kernc added the bug label Feb 10, 2023
kernc added a commit that referenced this issue Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants