0

On 13.10, I tried installing the package python-pypdf. I got an error during installation, and can't get ride of it.

I tried sudo dpkg --remove python-pypdf and sudo dpkg --purge python-pypdf and sudo apt-get -f install

I always get an error like

Paramétrage de python-pypdf (1.13-1) ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 449, in <module>
    shutil.rmtree(dir)
  File "/usr/lib/python2.7/shutil.py", line 232, in rmtree
    onerror(os.path.islink, path, sys.exc_info())
  File "/usr/lib/python2.7/shutil.py", line 230, in rmtree
    raise OSError("Cannot call rmtree on a symbolic link")
OSError: Cannot call rmtree on a symbolic link
dpkg: erreur de traitement de python-pypdf (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 python-pypdf
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any idea on how I may fix this ?

1 Answer 1

1

Try the below command to remove python-pypdf forcely,

sudo dpkg -P --force-remove-reinstreq python-pypdf

Then install it again by running,

sudo apt-get install python-pypdf
4
  • What does --force-remove-reinstreq mean? could you explain your command
    – Maythux
    Mar 5, 2014 at 9:47
  • remove-reinstreq - Remove packages which require installation Mar 5, 2014 at 9:49
  • see man dpkg or dpkg --force-help commands. Mar 5, 2014 at 9:50
  • see also this my friend :-) Mar 5, 2014 at 9:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .