package click 0.4.21.1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1

Bug #1386354 reported by Joe Suber
62
This bug affects 13 people
Affects Status Importance Assigned to Milestone
click (Ubuntu)
Confirmed
High
Unassigned

Bug Description

While upgrading to 14.10 this continually triggers warnings I only partially understand.

Now all menu-bars and side-bars are missing, though icons remain.

I have booted using several kernel via GRUB menu in an attempt to avoid the problem.

Also tried to install via 'sudo apt-get click --upgrade'

Error message is "cannot import name 'commands'"

NVIDIA proprietary driver install happened in here somewhere... 343.22 and 340.?? were tried. This restored desktop without menu bars or side-bar - the current situation.

ProblemType: Package
DistroRelease: Ubuntu 14.10
Package: click 0.4.21.1
ProcVersionSignature: Ubuntu 3.13.0-38.65-generic 3.13.11.8
Uname: Linux 3.13.0-38-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
Date: Mon Oct 27 12:49:59 2014
DuplicateSignature: package:click:0.4.21.1:subprocess new pre-removal script returned error exit status 1
ErrorMessage: subprocess new pre-removal script returned error exit status 1
InstallationDate: Installed on 2014-03-31 (209 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: click
Title: package click 0.4.21.1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Joe Suber (joesuber) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Brian Murray (brian-murray) wrote :

From Aptlog.gz:

Preparing to unpack .../click_0.4.33_amd64.deb ...^M
Traceback (most recent call last):^M
  File "/usr/bin/click", line 31, in <module>^M
    from click import commands^M
ImportError: cannot import name 'commands'^M
dpkg: warning: subprocess old pre-removal script returned error exit status 1^M
dpkg: trying script from the new package instead ...^M
Traceback (most recent call last):^M
  File "/usr/bin/click", line 31, in <module>^M
    from click import commands^M
ImportError: cannot import name 'commands'^M
dpkg: error processing archive /var/cache/apt/archives/click_0.4.33_amd64.deb (--unpack):^M
 subprocess new pre-removal script returned error exit status 1^M

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in click (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

What do you get if you run:
$ sudo apt-get install -f
?
Do you have a "main.log" file somewhere in /var/log/dist-upgrade/* (maybe in a surdirectory)? Having that attached to this bugreport would be helperful to find out what exactly happend.

Thanks,
 Michael

Revision history for this message
Rémy Léone (remyleone) wrote :
Revision history for this message
Rémy Léone (remyleone) wrote : Re: [Bug 1386354] Re: package click 0.4.21.1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1

Done. I was forced to do dirty move in the script that where bugging. I've
added exit(0) on top to make them shut down. I might have put my system in
a dirty state but it was the only move I saw to get out of trouble.

2014-10-30 17:07 GMT+01:00 Michael Vogt <email address hidden>:

> Thanks for your bugreport.
>
> What do you get if you run:
> $ sudo apt-get install -f
> ?
> Do you have a "main.log" file somewhere in /var/log/dist-upgrade/* (maybe
> in a surdirectory)? Having that attached to this bugreport would be
> helperful to find out what exactly happend.
>
> Thanks,
> Michael
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1385617).
> https://bugs.launchpad.net/bugs/1386354
>
> Title:
> package click 0.4.21.1 failed to install/upgrade: subprocess new pre-
> removal script returned error exit status 1
>
> Status in “click” package in Ubuntu:
> Confirmed
>
> Bug description:
> While upgrading to 14.10 this continually triggers warnings I only
> partially understand.
>
> Now all menu-bars and side-bars are missing, though icons remain.
>
> I have booted using several kernel via GRUB menu in an attempt to
> avoid the problem.
>
> Also tried to install via 'sudo apt-get click --upgrade'
>
> Error message is "cannot import name 'commands'"
>
> NVIDIA proprietary driver install happened in here somewhere... 343.22
> and 340.?? were tried. This restored desktop without menu bars or
> side-bar - the current situation.
>
> ProblemType: Package
> DistroRelease: Ubuntu 14.10
> Package: click 0.4.21.1
> ProcVersionSignature: Ubuntu 3.13.0-38.65-generic 3.13.11.8
> Uname: Linux 3.13.0-38-generic x86_64
> NonfreeKernelModules: nvidia
> ApportVersion: 2.14.7-0ubuntu8
> Architecture: amd64
> Date: Mon Oct 27 12:49:59 2014
> DuplicateSignature: package:click:0.4.21.1:subprocess new pre-removal
> script returned error exit status 1
> ErrorMessage: subprocess new pre-removal script returned error exit
> status 1
> InstallationDate: Installed on 2014-03-31 (209 days ago)
> InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64
> (20131016.1)
> SourcePackage: click
> Title: package click 0.4.21.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/click/+bug/1386354/+subscriptions
>

Changed in click (Ubuntu):
importance: Undecided → High
Revision history for this message
Markus Gonaus (magonaus) wrote :

This comes from an old python packet installed with python:

You can solve this problem as follows:

markus@markus-desktop:~$ sudo pip3 uninstall click
[sudo] password for markus:
Uninstalling click:
  /usr/local/lib/python3.4/dist-packages/click-2.5-py3.4.egg
Proceed (y/n)? y
  Successfully uninstalled click
markus@markus-desktop:~$

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.