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

Bug #1811273 reported by manish kumar kasera
8
This bug affects 1 person
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+dfsg~ubuntu-0ubuntu2
ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18
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
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2
 apt 1.6.3
SourcePackage: samba
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
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
manish kumar kasera (annumanish03) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

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.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Since it seems likely to me that this is a local configuration problem, rather than a bug in Ubuntu, I'm marking this bug as Incomplete.

If indeed this is a local configuration problem, you can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

Or if you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to New.

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
manish kumar kasera (annumanish03) wrote : Re: [Bug 1811273] Re: 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

System hangs on while installing any package what to do

On Fri, Jan 11, 2019, 2:11 PM Christian Ehrhardt  <
<email address hidden> wrote:

> Thank you for taking the time to report this bug and helping to make
> Ubuntu better.
>
> Since it seems likely to me that this is a local configuration problem,
> rather than a bug in Ubuntu, I'm marking this bug as Incomplete.
>
> If indeed this is a local configuration problem, you can find pointers
> to get help for this sort of problem here:
> http://www.ubuntu.com/support/community
>
> Or if you believe that this is really a bug, then you may find it
> helpful to read "How to report bugs effectively"
> http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful
> if you would then provide a more complete description of the problem,
> explain why you believe this is a bug in Ubuntu rather than a problem
> specific to your system, and then change the bug status back to New.
>
> ** Changed in: samba (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> 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
>
> Status in samba package in Ubuntu:
> Incomplete
>
> Bug description:
> i dont know
>
> ProblemType: Package
> DistroRelease: Ubuntu 18.04
> Package: python-samba 2:4.7.6+dfsg~ubuntu-0ubuntu2
> ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18
> 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
> RelatedPackageVersions:
> dpkg 1.19.0.5ubuntu2
> apt 1.6.3
> SourcePackage: samba
> 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
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1811273/+subscriptions
>

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for samba (Ubuntu) because there has been no activity for 60 days.]

Changed in samba (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.