How to solve the problem that you can't use the apt-get command in BT5
This article shows you how to solve the problem of using apt-get command in BT5. The content is concise and easy to understand. It will definitely make your eyes shine. I hope you can gain something from the detailed introduction of this article.
When executing apt-get install xxxx, the following error is reported
E: There are problems and -y was used without --force-yes
Solution:
vim /etc/apt/sources.list
Delete and add the following:
deb http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
Note: The source used here is ubuntu, you can also find the source online, but the bt series source has stopped updating, some software has not been found.
Kali can add the following sources:
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
replacement source
apt-get update
If you change the source, execute apt-get install xxx on bt5 and report the following error
E: Sub-process /usr/bin/dpkg returned an error code (1)
Treatment:
mv /var/lib/dpkg/info/var/lib/dpkg/info. bak//now rename info folder
mkdir /var/lib/dpkg/info //Create a new info folder
apt-get update
apt-get -f install
mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bak
rm -rf /var/lib/dpkg/info //delete your new info folder
mv/var/lib/dpkg/info. bak/var/lib/dpkg/info //change the name of the previous info folder back
apt-get update
Finally: bt series source is no longer updated, the above method may not be able to completely solve your problem, it is recommended to use kali to do the task
The above is how to solve the problem of not using apt-get command in BT5. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to the industry information channel.