Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that you can't use the apt-get command in BT5

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report