apt-get install fail 的workaround

in ubuntu server 64, 10.04, when use 

 

sudo apt-get install sqlite3

 

it always stoped on a libgpl-0 package reinstall, and  it stuck in unpackaing libgpl-0.....

 

and I can not install any unbuntu package .

再也不能安装任何ubuntu包,因为老是死在那一步。

 

some solution and workaround here.

提供解决方案或者临时方案在这里。

 

首先用force-all命令强制删除包,好像只有这个办法。

 

1. first use --force-all option to remove the fail package

 

sudo apt-get --force-all -r fail_package_name

 

you could sudo apt-get clean  to try.

 

2. you may also remove previeos upgrade operation , my fault was caused by install gmone-core

 

so I do same thing for gnome-core :sudo apt-get --force-all -r gnome-core

 

注意我是重启机器后才解决的。

3. reboot ubuntu  machine

if I do not reboot machine ,everything still fail when do apt-get install.

I do see many kenel error in sys message

 

4.now try sudo apt-get install sqlite3

 

it will success, I was stuck there and get crazy for almost 3 hours, and worry about to re install all system as any apt-get install could not go on.

 

 

 

你可能感兴趣的:(Install)