package perl-doc 5.10.1-8ubuntu2 failed to install/upgrade: subprocess new pre-installation script returned error exit status 2

Bug #776960 reported by Daniel Feliciano Branco on 2011-05-04
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
perl (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: perl

The following packages have unmet dependencies:
  perl: Depends: perl-base (= 5.10.1-8ubuntu2) but 5.10.1-8ubuntu2.1 is installed
  perl-suid: Depends: perl (= 5.10.1-8ubuntu2.1) but 5.10.1-8ubuntu2 is installed

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: perl-doc 5.10.1-8ubuntu2
ProcVersionSignature: Ubuntu 2.6.32-28.55-generic 2.6.32.27+drm33.12
Uname: Linux 2.6.32-28-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed May 4 09:45:04 2011
ErrorMessage: subprocess new pre-installation script returned error exit status 2
PackageArchitecture: all
SourcePackage: perl
Title: package perl-doc 5.10.1-8ubuntu2 failed to install/upgrade: subprocess new pre-installation script returned error exit status 2

The complete install attempt

# aptitude full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be upgraded:
  perl perl-doc
The following partially installed packages will be configured:
  perl-suid
2 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/11.6MB of archives. After unpacking 24.6kB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
(Reading database ... 497330 files and directories currently installed.)
Preparing to replace perl 5.10.1-8ubuntu2 (using .../perl_5.10.1-8ubuntu2.1_amd64.deb) ...
Unpacking replacement perl ...
dpkg: error processing /var/cache/apt/archives/perl_5.10.1-8ubuntu2.1_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/perldoc', which is also in package perl-doc 0:5.10.1-8ubuntu2
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace perl-doc 5.10.1-8ubuntu2 (using .../perl-doc_5.10.1-8ubuntu2.1_all.deb) ...
Adding `diversion of /usr/bin/perldoc to /usr/bin/perldoc.stub by perl-doc'
dpkg-divert: rename involves overwriting `/usr/bin/perldoc.stub' with
  different file `/usr/bin/perldoc', not allowed
dpkg: error processing /var/cache/apt/archives/perl-doc_5.10.1-8ubuntu2.1_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 2
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/perl_5.10.1-8ubuntu2.1_amd64.deb
 /var/cache/apt/archives/perl-doc_5.10.1-8ubuntu2.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of perl-suid:
 perl-suid depends on perl (= 5.10.1-8ubuntu2.1); however:
  Version of perl on system is 5.10.1-8ubuntu2.
dpkg: error processing perl-suid (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 perl-suid
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

I've tried fixing it by removing the dependencies...

dpkg -r latex2html
dpkg -r perl-doc
aptitude full-upgrade

It worked, I was able to run the full-upgrade problem free, but now it fails on reinstalling perl-doc

# apt-get install perl-doc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  groff
The following NEW packages will be installed:
  perl-doc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/7,198kB of archives.
After this operation, 13.5MB of additional disk space will be used.
(Reading database ... 495294 files and directories currently installed.)
Unpacking perl-doc (from .../perl-doc_5.10.1-8ubuntu2.1_all.deb) ...
Adding `diversion of /usr/bin/perldoc to /usr/bin/perldoc.stub by perl-doc'
dpkg-divert: rename involves overwriting `/usr/bin/perldoc.stub' with
  different file `/usr/bin/perldoc', not allowed
dpkg: error processing /var/cache/apt/archives/perl-doc_5.10.1-8ubuntu2.1_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/perl-doc_5.10.1-8ubuntu2.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any ideia?

Thanks

daneil

tags: added: package-conflict
Launchpad Janitor (janitor) wrote :

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

Changed in perl (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers