LINUX.ORG.RU

История изменений

Исправление sdio, (текущая версия) :

$ sudo /etc/init.d/squid stop
[ ok ] Stopping Squid HTTP proxy: squid.

$ sudo mv /etc/init.d/squid /root/

$ sudo apt-get remove squid
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  squid-common squid-langpack
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  squid
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 1,914 kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 243361 files and directories currently installed.)
Removing squid ...
invoke-rc.d: unknown initscript, /etc/init.d/squid not found.
dpkg: error processing squid (--remove):
 subprocess installed pre-removal script returned error exit status 100
update-rc.d: error: unable to read /etc/init.d/squid
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 squid
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ sudo touch /etc/init.d/squid 

$ sudo apt-get remove squid
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  squid-common squid-langpack
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  squid
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 1,914 kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 243361 files and directories currently installed.)
Removing squid ...
Processing triggers for man-db ...
$ 

Все удаляется.

без предварительного
$ sudo /etc/init.d/squid stop
тоже удаляет

Исходная версия sdio, :

$ sudo /etc/init.d/squid stop
[ ok ] Stopping Squid HTTP proxy: squid.

$ sudo mv /etc/init.d/squid /root/

$ sudo apt-get remove squid
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  squid-common squid-langpack
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  squid
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 1,914 kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 243361 files and directories currently installed.)
Removing squid ...
invoke-rc.d: unknown initscript, /etc/init.d/squid not found.
dpkg: error processing squid (--remove):
 subprocess installed pre-removal script returned error exit status 100
update-rc.d: error: unable to read /etc/init.d/squid
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 squid
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ sudo touch /etc/init.d/squid 

$ sudo apt-get remove squid
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  squid-common squid-langpack
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  squid
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 1,914 kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 243361 files and directories currently installed.)
Removing squid ...
Processing triggers for man-db ...
$ 

Все удаляется.