I tried updating my jessie system, and lilypond-doc upgrade failed:
---------------
...
The following packages will be upgraded:
lilypond-doc
1 packages upgraded, 0 newly installed, 0 to remove and 81 not upgraded.
Need to get 0 B/15.6 MB of archives. After unpacking 19.2 MB will be used.
Do you want to continue? [Y/n/?] Y
Reading changelogs... Done
(Reading database ... 134404 files and directories currently installed.)
Preparing to unpack .../lilypond-doc_2.18.0-1_all.deb ...
dpkg-maintscript-helper: error: original symlink target is not an absolute path
dpkg: error processing archive /var/cache/apt/archives/lilypond-doc_2.18.0-1_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
dpkg-maintscript-helper: error: original symlink target is not an absolute path
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/lilypond-doc_2.18.0-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package. Trying to recover:
root@darkstar:/var/cache/apt/archives#
--------------------
So, I tried to purge lilypond-doc, but it didn't work:
--------------------
root@darkstar:/var/cache/apt/archives# aptitude purge lilypond-doc
The following packages will be REMOVED:
lilypond-doc{p}
0 packages upgraded, 0 newly installed, 1 to remove and 81 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Do you want to continue? [Y/n/?] Y
dpkg: error processing package lilypond-doc (--purge):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
lilypond-doc
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package. Trying to recover:
root@darkstar:/var/cache/apt/archives#
--------------------
Oh, well. Tried to reinstall it, but...
--------------------
root@darkstar:/var/cache/apt/archives# aptitude reinstall lilypond-doc
The following packages will be REINSTALLED:
lilypond-doc
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 81 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
E: Can't find a source to download version '2.18.0-1' of 'lilypond-doc:i386'
E: Can't find a source to download version '2.18.0-1' of 'lilypond-doc:i386'
E: Internal error: couldn't generate list of packages to download
root@darkstar:/var/cache/apt/archives#
Argh! I'm stuck. Any hints?
João