Perl lässt sich nicht deinstallieren

Bash, Shell, PHP, Python, Perl, CGI
freeze24
Posts: 11
Joined: 2004-06-21 15:25
Location: Bayern/Oberpfalz

Perl lässt sich nicht deinstallieren

Post by freeze24 » 2007-04-12 19:53

Hi,
ich nutze Debian 4 und scheitere grad an der Installation von Perl.
Irgendwas scheint da ziemlich kaputt zu sein.

Ich schaffe weder, es vernünftig zu installieren noch es wieder zu deinstallieren.

Der Befehl "apt-get remove perl" gibt folgendes aus:
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
perl
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
Need to get 0B of archives.
After unpacking 13.9MB disk space will be freed.
Do you want to continue [Y/n]? Y
/usr/sbin/dpkg-preconfigure: line 6: BEGIN: command not found
/usr/sbin/dpkg-preconfigure: line 7: qq{: command not found
/usr/sbin/dpkg-preconfigure: line 8: use: command not found
/usr/sbin/dpkg-preconfigure: line 9: use: command not found
/usr/sbin/dpkg-preconfigure: line 10: syntax error near unexpected token `('
/usr/sbin/dpkg-preconfigure: line 10: ` use Debconf::Log qw(:all);'
(Reading database ... 12781 files and directories currently installed.)
Removing perl ...
/usr/sbin/update-alternatives: line 3: =/var/lib/dpkg: No such file or directory
/usr/sbin/update-alternatives: line 4: =/usr/lib/dpkg: No such file or directory
/usr/sbin/update-alternatives: line 5: =1.13.25: command not found
/usr/sbin/update-alternatives: line 6: syntax error near unexpected token `@INC,'
/usr/sbin/update-alternatives: line 6: `push (@INC, $dpkglibdir);'
dpkg: error processing perl (--remove):
subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
perl
E: Sub-process /usr/bin/dpkg returned an error code (1)
"whereis perl" gibt aus:
perl: /usr/bin/perl /usr/lib/perl
"apt-get install perl-modules" liefert folgendes:
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
perl-modules
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/2310kB of archives.
After unpacking 12.0MB of additional disk space will be used.
/usr/sbin/dpkg-preconfigure: line 6: BEGIN: command not found
/usr/sbin/dpkg-preconfigure: line 7: qq{: command not found
/usr/sbin/dpkg-preconfigure: line 8: use: command not found
/usr/sbin/dpkg-preconfigure: line 9: use: command not found
/usr/sbin/dpkg-preconfigure: line 10: syntax error near unexpected token `('
/usr/sbin/dpkg-preconfigure: line 10: ` use Debconf::Log qw(:all);'
Selecting previously deselected package perl-modules.
(Reading database ... 12781 files and directories currently installed.)
Unpacking perl-modules (from .../perl-modules_5.8.8-7_all.deb) ...
Setting up perl-modules (5.8.8-7) ...
"apt-get install perl"
Reading package lists... Done
Building dependency tree... Done
perl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Woran könnte es scheitern?

braindead
Posts: 250
Joined: 2002-10-22 09:49
Location: vorm Rechner

Re: Perl lässt sich nicht deinstallieren

Post by braindead » 2007-04-13 09:40

versuch doch mal aptitude, vielleicht gehts ja damit.

freeze24
Posts: 11
Joined: 2004-06-21 15:25
Location: Bayern/Oberpfalz

Re: Perl lässt sich nicht deinstallieren

Post by freeze24 » 2007-04-13 10:02

Nein, geht leider auch nicht.

Kommen die gleichen Fehler. Egal ob Deinstall, Install oder Reinstall.