Bug#766784: libjson-pp-perl: can neither remove nor install newer version of this package: possible cause

Dominique Dumont dod at debian.org
Mon Oct 27 12:51:15 UTC 2014


Hello

To get a similar error message while upgrading libjson-pp-perl, I had to 
create a bogus /usr/share/man/man1/json_pp.bundled.1.gz before upgrading 
libjson-pp-perl to version 2.27300-2:

# echo foobar > /usr/share/man/man1/json_pp.bundled.1.gz
$ sudo aptitude install libjson-pp-perl/testing
[ ok ]
$ sudo aptitude install libjson-pp-perl
The following packages will be upgraded: 
  libjson-pp-perl 
1 packages upgraded, 0 newly installed, 0 to remove and 712 not upgraded.
Need to get 0 B/51.8 kB of archives. After unpacking 1,024 B will be used.
Do you want to continue? [Y/n/?] 
Reading changelogs... Done               
(Reading database ... 365498 files and directories currently installed.)
Preparing to unpack .../libjson-pp-perl_2.27300-2_all.deb ...
Removing 'diversion of /usr/share/man/man1/json_pp.1.gz to 
/usr/share/man/man1/json_pp.1.bundled.gz by libjson-pp-perl'
Leaving 'diversion of /usr/bin/json_pp to /usr/bin/json_pp.bundled by libjson-
pp-perl'
Adding 'diversion of /usr/share/man/man1/json_pp.1.gz to 
/usr/share/man/man1/json_pp.bundled.1.gz by libjson-pp-perl'
dpkg-divert: error: rename involves overwriting 
`/usr/share/man/man1/json_pp.bundled.1.gz' with
  different file `/usr/share/man/man1/json_pp.1.gz', not allowed
dpkg: error processing archive /var/cache/apt/archives/libjson-pp-
perl_2.27300-2_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/libjson-pp-perl_2.27300-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package.  Trying to recover:



I suspect that the error on your system comes from a similar cause.

Could you:
- purge libjson-pp-perl
- remove any existing /usr/share/man/man1/json_pp.bundled.1.gz file
  (do *not* remove /usr/share/man/man1/json_pp.1.gz )
- install libjson-pp-perl


Hope this helps

-- 
 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org



More information about the pkg-perl-maintainers mailing list