[Bug 1754311] Re: package python-twisted-core 16.0.0-1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1

DLPaktor David at Paktor.biz
Thu Mar 8 13:05:40 UTC 2018


Thank you!

I just changed the sym-link for  python  in  /usr/bin  to point to
python2.7  (again) and I restored  pyclean  to its previous state.

I tried  Software Updater ; it still put up the same message.

But then I re-ran   apt-get -f install  and it proceeded smoothly to a
close.

So I tried  Software Updater  again.  Apparently,  apt-get -f install  fixed things, and S.U. ran to a 
successful completion as well.

Again, thank you so much!

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

Title:
  package python-twisted-core 16.0.0-1 failed to install/upgrade:
  subprocess new pre-removal script returned error exit status 1

Status in twisted package in Ubuntu:
  New

Bug description:
  I installed python 3.6.4.

  Now when I run Software Updater, or  apt-get -f install  from the command-line,
  they crash.

  Software Updater puts up a message that:

  The package system is broken
  Check if you are using third party repositories. If so disable them, since they are a common source of problems.
  Furthermore run the following command in a Terminal: apt-get install -f

  
  Running  apt-get install -f  produced a cascade with the following highlight:

  Preparing to unpack .../python-twisted-core_16.0.0-1ubuntu0.2_all.deb ...
    File "/usr/bin/pyclean", line 63
      except (IOError, OSError), e:
                               ^
  SyntaxError: invalid syntax


  So I changed   File "/usr/bin/pyclean", line 63 to
      except (IOError, OSError) as e:

  
  The run of  apt-get install -f  now got:

  Preparing to unpack .../python-twisted-core_16.0.0-1ubuntu0.2_all.deb ...
  Traceback (most recent call last):
    File "/usr/bin/pyclean", line 32, in <module>
      from debpython.namespace import add_namespace_files
    File "/usr/share/python/debpython/namespace.py", line 120
      except (IOError, OSError), e:
                               ^

  
  I checked and, yes, File "/usr/share/python/debpython/namespace.py", line 120 has the same phrase.

  
  Breaking the update system prevents security updates from going through, so I am going to check the "security vulnerability" box as well.

  ProblemType: Package
  DistroRelease: Ubuntu 16.04
  Package: python-twisted-core 16.0.0-1
  ProcVersionSignature: Ubuntu 4.4.0-112.135-generic 4.4.98
  Uname: Linux 4.4.0-112-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.15
  Architecture: amd64
  Date: Thu Mar  8 01:37:43 2018
  ErrorMessage: subprocess new pre-removal script returned error exit status 1
  PackageArchitecture: all
  RelatedPackageVersions:
   dpkg 1.18.4ubuntu1.1
   apt  1.2.15ubuntu0.2
  SourcePackage: twisted
  Title: package python-twisted-core 16.0.0-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/twisted/+bug/1754311/+subscriptions



More information about the foundations-bugs mailing list