apt-get error
时间:2006-08-03 来源:NetDC
apt-get ERROR - Please help me!!
Hi,
I don't know if anyone replied to this problem, or if anyone needs help with it, but I figured how to fix such a problem without having to re-install Ubuntu again.
I ran into the same problem, and saw some other people run into it,
but I did not find a solution, so I kept following through the original files,
and I figured how to fix the problem.
First the problem occured for me when I tried to use "alien" to change
files from rpm to deb files.
So after fooling around with all the apt-get commands, and dpkg commands,
to no avail, I finally decided to try my luck manually.
1. I opened up the deb files with Archive Manager, to have an idea of where
the files install, and followed through and saw where all the files are,
and uninstalled them.
2. Also make sure you read the files in the control zip file within the deb package with gedit (or other editor), and find out where the files where
installed.
3. Make sure all installed files and folders are deleted.
Some files will require root pass, so be careful you don't delete other files
and folders.
4. After making sure that all files and folders are deleted.
- Check "/var/packages" to see if there are any related folders
and delete them.
5. The most important:
- In order to remove package info from system,
go into "/var/lib/dpkg/info", and delete all files associated with package
and delete them.
6. Now go into a terminal and type:
- sudo dpkg -r --force-remove-reinstreq <package name> (without brackets)
- Then, sudo dpkg --purge <package name> (without brackets)
7. Update repositories with: sudo apt-get update
And hope that you're done, and it works.
This thread is a bit old, but I did not find a reply anywhere,
so I thought to myself that this might help some people.
实际上按照我的经验,有的时候这些步骤还是不够的,这个时候需要手工修改/var/lib/dpkg/status文件,删掉不必要的东西,如果删错了可以用apt-get -f install来修正。最后再apt-get update ; apt-get upgrade,基本可以搞定。
I don't know if anyone replied to this problem, or if anyone needs help with it, but I figured how to fix such a problem without having to re-install Ubuntu again.
I ran into the same problem, and saw some other people run into it,
but I did not find a solution, so I kept following through the original files,
and I figured how to fix the problem.
First the problem occured for me when I tried to use "alien" to change
files from rpm to deb files.
So after fooling around with all the apt-get commands, and dpkg commands,
to no avail, I finally decided to try my luck manually.
1. I opened up the deb files with Archive Manager, to have an idea of where
the files install, and followed through and saw where all the files are,
and uninstalled them.
2. Also make sure you read the files in the control zip file within the deb package with gedit (or other editor), and find out where the files where
installed.
3. Make sure all installed files and folders are deleted.
Some files will require root pass, so be careful you don't delete other files
and folders.
4. After making sure that all files and folders are deleted.
- Check "/var/packages" to see if there are any related folders
and delete them.
5. The most important:
- In order to remove package info from system,
go into "/var/lib/dpkg/info", and delete all files associated with package
and delete them.
6. Now go into a terminal and type:
- sudo dpkg -r --force-remove-reinstreq <package name> (without brackets)
- Then, sudo dpkg --purge <package name> (without brackets)
7. Update repositories with: sudo apt-get update
And hope that you're done, and it works.
This thread is a bit old, but I did not find a reply anywhere,
so I thought to myself that this might help some people.
实际上按照我的经验,有的时候这些步骤还是不够的,这个时候需要手工修改/var/lib/dpkg/status文件,删掉不必要的东西,如果删错了可以用apt-get -f install来修正。最后再apt-get update ; apt-get upgrade,基本可以搞定。
相关阅读 更多 +
排行榜 更多 +