[Bug 1651660] Re: package python-samba 2:4.3.11+dfsg-0ubuntu0.16.04.1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1

Cor Melse 1651660 at bugs.launchpad.net
Mon Feb 13 10:59:00 UTC 2017


Hi,
stat /usr/bin/python says:

melsec at LT140063:~$ stat /usr/bin/python
  File: '/usr/bin/python' -> '/etc/alternatives/python'
  Size: 24            Blocks: 0          IO Block: 4096   symbolic link
Device: 802h/2050d    Inode: 3674418     Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2017-02-13 09:25:56.783621704 +0100
Modify: 2017-01-20 16:13:18.632559074 +0100
Change: 2017-01-20 16:13:18.636559074 +0100
 Birth: -

As i use both python 2.7 and 3.5 (with Anaconda), i presume it has
something to do with update-alternatives?
2.7 is the default (manualy with UA)

Cheers, Cor

2017-02-13 11:35 GMT+01:00 Robie Basak <1651660 at bugs.launchpad.net>:

> >From log:
>
> Preparing to unpack .../python-samba_2%3a4.3.11+
> dfsg-0ubuntu0.16.04.3_amd64.deb ...
>   File "/usr/bin/pyclean", line 63
>     except (IOError, OSError), e:
>                              ^
> SyntaxError: invalid syntax
> dpkg: warning: subprocess old pre-removal script returned error exit
> status 1
> dpkg: trying script from the new package instead ...
>   File "/usr/bin/pyclean", line 63
>     except (IOError, OSError), e:
>                              ^
> SyntaxError: invalid syntax
> dpkg: error processing archive /var/cache/apt/archives/
> python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.3_amd64.deb (--unpack):
>  subprocess new pre-removal script returned error exit status 1
>
> Have you messed with your /usr/bin/python symlink? What does "stat
> /usr/bin/python" show?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1651660
>
> Title:
>   package python-samba 2:4.3.11+dfsg-0ubuntu0.16.04.1 failed to
>   install/upgrade: subprocess new pre-removal script returned error exit
>   status 1
>
> Status in samba package in Ubuntu:
>   Incomplete
>
> Bug description:
>   while starting my laptop it could not find the cifs shares
>
>   ProblemType: Package
>   DistroRelease: Ubuntu 16.04
>   Package: python-samba 2:4.3.11+dfsg-0ubuntu0.16.04.1
>   ProcVersionSignature: Ubuntu 4.4.0-53.74-generic 4.4.30
>   Uname: Linux 4.4.0-53-generic x86_64
>   ApportVersion: 2.20.1-0ubuntu2.4
>   Architecture: amd64
>   Date: Wed Dec 21 08:34:15 2016
>   ErrorMessage: subprocess new pre-removal script returned error exit
> status 1
>   InstallationDate: Installed on 2016-06-28 (175 days ago)
>   InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64
> (20160420.1)
>   RelatedPackageVersions:
>    dpkg 1.18.4ubuntu1.1
>    apt  1.2.15ubuntu0.2
>   SambaClientRegression: Yes
>   SourcePackage: samba
>   Title: package python-samba 2:4.3.11+dfsg-0ubuntu0.16.04.1 failed to
> install/upgrade: subprocess new pre-removal script 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/
> 1651660/+subscriptions
>

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1651660

Title:
  package python-samba 2:4.3.11+dfsg-0ubuntu0.16.04.1 failed to
  install/upgrade: subprocess new pre-removal script returned error exit
  status 1

Status in samba package in Ubuntu:
  Incomplete

Bug description:
  while starting my laptop it could not find the cifs shares

  ProblemType: Package
  DistroRelease: Ubuntu 16.04
  Package: python-samba 2:4.3.11+dfsg-0ubuntu0.16.04.1
  ProcVersionSignature: Ubuntu 4.4.0-53.74-generic 4.4.30
  Uname: Linux 4.4.0-53-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.4
  Architecture: amd64
  Date: Wed Dec 21 08:34:15 2016
  ErrorMessage: subprocess new pre-removal script returned error exit status 1
  InstallationDate: Installed on 2016-06-28 (175 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
  RelatedPackageVersions:
   dpkg 1.18.4ubuntu1.1
   apt  1.2.15ubuntu0.2
  SambaClientRegression: Yes
  SourcePackage: samba
  Title: package python-samba 2:4.3.11+dfsg-0ubuntu0.16.04.1 failed to install/upgrade: subprocess new pre-removal script 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/1651660/+subscriptions



More information about the foundations-bugs mailing list