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
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
i dont know
ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: python-samba 2:4.7.6+
ProcVersionSign
Uname: Linux 4.15.0-29-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Thu Jan 10 23:13:18 2019
ErrorMessage: installed python-samba package pre-removal script subprocess returned error exit status 1
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageV
dpkg 1.19.0.5ubuntu2
apt 1.6.3
SourcePackage: samba
Title: package python-samba 2:4.7.6+
UpgradeStatus: No upgrade log present (probably fresh install)
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/updates/ 0008' near line 9 package 'language- pack-zh- hans': pack-g� ome-zh- hans-base' : character '�' not allowed (only letters, digits and characters '-+._')
dpkg-query: error: parsing file '/var/lib/
'Replaces' field, invalid package name 'language-
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. pack-zh- hans
$ apt install --fix-broken
$ apt install --reinstall language-
$ 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.