/ Forside / Teknologi / Operativsystemer / Linux / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Linux
#NavnPoint
o.v.n. 11177
peque 7911
dk 4814
e.c 2359
Uranus 1334
emesen 1334
stone47 1307
linuxrules 1214
Octon 1100
10  BjarneD 875
apt-get problemer i debian stable
Fra : Mikkel Bundgaard


Dato : 26-03-04 00:30

Har Debian stable på min linux box og forbindelse med med conf af
courier-imap-ssl fik jeg lavet noget hø, og ville afinstallere og
derefter geninstallere. Nu får jeg følgende når jeg afinstallerer:


galliano:/tmp# apt-get remove courier-imap-ssl
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
courier-imap-ssl
0 packages upgraded, 0 newly installed, 1 to remove and 149 not upgraded.
1 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 111kB will be freed.
Do you want to continue? [Y/n] y
dpkg: error processing courier-imap-ssl (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
courier-imap-ssl
E: Sub-process /usr/bin/dpkg returned an error code (1)



Prøver jeg at geninstallere får følgende:



galliano:/tmp# apt-get install courier-imap-ssl_1.4.3-3.3_i386.deb
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package courier-imap-ssl_1.4.3-3.3_i386.deb
galliano:/tmp# apt-get install courier-imap-ssl
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, courier-imap-ssl is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 149 not upgraded.
1 packages not fully installed or removed.
Need to get 0B/9986B of archives. After unpacking 0B will be used.
Selecting previously deselected package courier-imap-ssl.
(Reading database ... 24571 files and directories currently installed.)
Preparing to replace courier-imap-ssl 1.4.3-3.3 (using
..../courier-imap-ssl_1.4.3-3.3_i386.deb) ...
ERR: config file missing
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
ERR: config file missing
dpkg: error processing
/var/cache/apt/archives/courier-imap-ssl_1.4.3-3.3_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
ERR: config file missing
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/courier-imap-ssl_1.4.3-3.3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)




Hjælp, hvad gør jeg for at løse problemet? Prøvede med dpkg --force-all
-i courier-imap-ssl.deb

uden at det hjalp

/mikkel


 
 
Kim Hansen (26-03-2004)
Kommentar
Fra : Kim Hansen


Dato : 26-03-04 01:13

Mikkel Bundgaard <invalid@invalid.dk> writes:

> galliano:/tmp# apt-get install courier-imap-ssl
> Reading Package Lists... Done
> Building Dependency Tree... Done
> Sorry, courier-imap-ssl is already the newest version.
> 0 packages upgraded, 0 newly installed, 0 to remove and 149 not upgraded.
> 1 packages not fully installed or removed.
> Need to get 0B/9986B of archives. After unpacking 0B will be used.
> Selecting previously deselected package courier-imap-ssl.
> (Reading database ... 24571 files and directories currently installed.)
> Preparing to replace courier-imap-ssl 1.4.3-3.3 (using
> .../courier-imap-ssl_1.4.3-3.3_i386.deb) ...
>
> ERR: config file missing
> dpkg: warning - old pre-removal script returned error exit status 1
> dpkg - trying script from the new package instead ...
> ERR: config file missing
> dpkg: error processing
> /var/cache/apt/archives/courier-imap-ssl_1.4.3-3.3_i386.deb (--unpack):
>
> subprocess new pre-removal script returned error exit status 1
> ERR: config file missing
> dpkg: error while cleaning up:
> subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
> /var/cache/apt/archives/courier-imap-ssl_1.4.3-3.3_i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)

De scripts der giver fejl ligger som
/var/lib/dpkg/info/courier-imap-ssl.*, det første af dem er det følgende:

amanda# cat /var/lib/dpkg/info/courier-imap-ssl.prerm
#!/bin/sh
set -e
# Automatically added by dh_installdocs
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/courier-imap-ssl ]; then
rm -f /usr/doc/courier-imap-ssl
fi
# End automatically added section
# Automatically added by dh_installinit
if [ -x "/etc/init.d/courier-imap-ssl" ]; then
/etc/init.d/courier-imap-ssl stop
fi
# End automatically added section
amanda#

Prøv at udkommentere de sidste fem linjer i scriptet, der er dem der
giver fejlen.

--
Kim Hansen | |\ _,,,---,,_ | Det er ikke
Dalslandsgade 8, A708 | /,`.-´` -. ;:-. | Jeopardy.
2300 København S | |,4- ) )-,_. ,\ ( `'-' | Svar _efter_
Tlf: 32 88 60 86 | '---''(_/--' `-'\_) | spørgsmålet.

Mikkel Bundgaard (27-03-2004)
Kommentar
Fra : Mikkel Bundgaard


Dato : 27-03-04 14:22

Det virkede, takker...


/mikkel


Søg
Reklame
Statistik
Spørgsmål : 177559
Tips : 31968
Nyheder : 719565
Indlæg : 6408936
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste