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

What if ubuntu12.04 deletes the dpkg folder by mistake?

2025-04-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article introduces the knowledge of "how to delete the dpkg folder by ubuntu12.04". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The error is as follows:

Reading package list. There's a mistake!

E: unable to open file / var/lib/dpkg/status-open (2 does not have this file or directory)

E: unable to parse or open the list or status file of the package

Delete it manually, and accidentally delete the entire dpkg folder. That's great. The sudo-get command simply doesn't work. Tried a lot of methods are not, as a result in the ubuntu forum to see a few years ago to see the post, the results are really right, summed up here.

1. Go to this link http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/ to download the corresponding version

2. Here is the direct order.

The code is as follows:

$su

Password: *

# ar x dpkg_version_arch.deb

# mv data.tar.gz / data.tar.gz

# cd /

# tar xzfv data.tar.gz

Step 3:# rm / var/lib/dpkg/status

Step 4:# cp / var/backups/dpkg.status.0 / var/lib/dpkg/status

Finally OK.

This is the end of the content of "ubuntu12.04 mistakenly deleted dpkg folder". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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