[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt-get and dpkg woes



I recently decided to upgrade my system at home since it's been a
while. I ran into a lot of problems, and the upgrade was VERY rough. However, after all of my playing around with the system, it seems to be left in a partially broken state. When I try to do an apt-get uprage, here's what happens:

# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
E: The package emacs19 needs to be reinstalled, but I can't find an archive for it.


I don't really want emacs19 installed, and have emacs20 on the system
already, but emacs19 seems to be the currently installed
version. Attempts to remove emacs19 fail, because the package is in an
inconsistent state. Luckily, I still have an emacs19 deb in my apt
cache, but attempts to install that also fail.


# dpkg -i emacs19_19.34-26.5_i386.deb 
Selecting previously deselected package emacs19.
(Reading database ... 60015 files and directories currently installed.)
Preparing to replace emacs19 19.34-26.5 (using emacs19_19.34-26.5_i386.deb) ...
emacs-remove emacs19
Can't locate File/Glob.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.0 /usr/local/share/perl/5.6.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.0 /usr/share/perl/5.6.0 /usr/lib/perl5/5.6/i386-linux /usr/lib/perl5/5.005/i386-linux .) at /usr/lib/emacsen-common/generate-install-list line 27.
BEGIN failed--compilation aborted at /usr/lib/emacsen-common/generate-install-list line 27.
Compilation failed in require at /usr/lib/emacsen-common/emacs-remove line 20.
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
emacs-remove emacs19
Can't locate File/Glob.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.0 /usr/local/share/perl/5.6.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.0 /usr/share/perl/5.6.0 /usr/lib/perl5/5.6/i386-linux /usr/lib/perl5/5.005/i386-linux .) at /usr/lib/emacsen-common/generate-install-list line 27.
BEGIN failed--compilation aborted at /usr/lib/emacsen-common/generate-install-list line 27.
Compilation failed in require at /usr/lib/emacsen-common/emacs-remove line 20.
dpkg: error processing emacs19_19.34-26.5_i386.deb (--install):
 subprocess new pre-removal script returned error exit status 2
emacs-install emacs19
Can't locate File/Glob.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.0 /usr/local/share/perl/5.6.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.0 /usr/share/perl/5.6.0 /usr/lib/perl5/5.6/i386-linux /usr/lib/perl5/5.005/i386-linux .) at /usr/lib/emacsen-common/generate-install-list line 27.
BEGIN failed--compilation aborted at /usr/lib/emacsen-common/generate-install-list line 27.
Compilation failed in require at /usr/lib/emacsen-common/emacs-install line 20.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 emacs19_19.34-26.5_i386.deb


I really need some help here, since I can't figure this one out. Is
there any way to force a purge?



Reply to: