Я только что ударился о стену и после стольких поисков не смог найти решение для этого.
root@server:# apt-get remove libapache2-mod-geoip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libapache2-mod-geoip
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 115kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 64325 files and directories currently installed.)
Removing libapache2-mod-geoip ...
ERROR: Module geoip does not exist!
dpkg: error processing libapache2-mod-geoip (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
libapache2-mod-geoip
E: Sub-process /usr/bin/dpkg returned an error code (1)
Пакет libapache2-mod-geoip также не установлен должным образом, и я не могу переустановить его с помощью dpkg-reconfigure или очистить его с помощью dpkg -P libapache2-mod-geoip. Это дает мне ту же ошибку.
Я решил проблему. Мне нужно было удалить определение из / var / lib / dpkg / info, а затем удаление прошло гладко.
root@server:/var/lib/dpkg/info# rm libapache2-mod-geoip.*
root@server:~# sudo apt-get purge libapache2-mod-geoip
root@server:~# sudo apt-get install libapache2-mod-geoi
и пакет как установленный.