cov
December 5th, 2012, 08:35 AM
I'm afraid I've been a bit naughty.
I tried to purge the installation of a broken package, which I understood removed the entire package, configuration files, everything.
When I still couldn't install the package again, I looked at the files in /usr/lib/ and notioced that the packages files were still there.
This is where I did something really silly; I manually deleted directories containing the package.
I then downloaded the latest DEB files and tried to install the package from scratch.
This is the error I get:
sudo dpkg -i Downloads/fpc_2.6.0-120824_amd64.deb
(Reading database ... 381019 files and directories currently installed.)
Preparing to replace fpc 2.7.1 (using .../fpc_2.6.0-120824_amd64.deb) ...
sed: can't read /usr/lib/fpc/2.7.1/fpc-cross.cfg: No such file or directory
dpkg: warning: subprocess old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
sed: can't read /usr/lib/fpc/2.6.0/fpc-cross.cfg: No such file or directory
dpkg: error processing Downloads/fpc_2.6.0-120824_amd64.deb (--install):
subprocess new pre-removal script returned error exit status 2
sh: Can't open /usr/lib/fpc/2.7.1/samplecfg
touch: cannot touch `/usr/lib/fpc/2.7.1/fpc-cross.cfg': No such file or directory
sed: can't read /usr/lib/fpc/2.7.1/fpc-cross.cfg: No such file or directory
/var/lib/dpkg/info/fpc.postinst: 8: cannot create /usr/lib/fpc/2.7.1/fpc-cross.cfg: Directory nonexistent
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
Downloads/fpc_2.6.0-120824_amd64.deb
Is there a way of getting apt-get or dpkg to disregard the prior installation? Failing which how easy is it to resurrect deleted files? I used "rm -rf".
The machine has Linux Mint Lisa.
I tried to purge the installation of a broken package, which I understood removed the entire package, configuration files, everything.
When I still couldn't install the package again, I looked at the files in /usr/lib/ and notioced that the packages files were still there.
This is where I did something really silly; I manually deleted directories containing the package.
I then downloaded the latest DEB files and tried to install the package from scratch.
This is the error I get:
sudo dpkg -i Downloads/fpc_2.6.0-120824_amd64.deb
(Reading database ... 381019 files and directories currently installed.)
Preparing to replace fpc 2.7.1 (using .../fpc_2.6.0-120824_amd64.deb) ...
sed: can't read /usr/lib/fpc/2.7.1/fpc-cross.cfg: No such file or directory
dpkg: warning: subprocess old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
sed: can't read /usr/lib/fpc/2.6.0/fpc-cross.cfg: No such file or directory
dpkg: error processing Downloads/fpc_2.6.0-120824_amd64.deb (--install):
subprocess new pre-removal script returned error exit status 2
sh: Can't open /usr/lib/fpc/2.7.1/samplecfg
touch: cannot touch `/usr/lib/fpc/2.7.1/fpc-cross.cfg': No such file or directory
sed: can't read /usr/lib/fpc/2.7.1/fpc-cross.cfg: No such file or directory
/var/lib/dpkg/info/fpc.postinst: 8: cannot create /usr/lib/fpc/2.7.1/fpc-cross.cfg: Directory nonexistent
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
Downloads/fpc_2.6.0-120824_amd64.deb
Is there a way of getting apt-get or dpkg to disregard the prior installation? Failing which how easy is it to resurrect deleted files? I used "rm -rf".
The machine has Linux Mint Lisa.