Hi,
the prerm section that failed only runs a few commands that seem rather safe.
#!/bin/sh
set -e
# Automatically added by dh_python2:
if which pyclean >/dev/null 2>&1; then
pyclean -p python-samba
else
dpkg -L python-samba | grep '\.py$' | while read file
do
rm -f "${file}"[co] >/dev/null
done
fi
# End automatically added section
no bad RC at:
- which is catched in the if
- rm is using force
So pyclean or dpdk could be the one that break IMHO.
In your log I also see:
dpkg-query: error: parsing file '/var/lib/dpkg/updates/0008' near line 9
package 'language-pack-zh-hans':
'Replaces' field, invalid package name 'language-pack-g�ome-zh-hans-base':
character '�' not allowed (only letters, digits and characters '-+._')
That is odd, it seems there is some incomplete update and it fails to
parse some things.
I installed "language-pack-zh-hans" but that worked fine as well.
Could you reinstall language-pack-zh-hans and see if that resolves the issue
overall.
$ apt install --fix-broken
$ apt install --reinstall language-pack-zh-hans
$ apt install --reinstall python-samba
I hope that helps but in general it seems more like a broken system
config than an issue in a a package.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1811273
Title:
package python-samba 2:4.7.6+dfsg~ubuntu-0ubuntu2 failed to
install/upgrade: installed python-samba package pre-removal script
subprocess returned error exit status 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1811273/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs