• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Fix E: Could not open file /var/lib/apt/lists/mirror.rackspace.com

By Abhishek Ghosh October 29, 2014 6:03 pm Updated on October 29, 2014

Fix E: Could not open file /var/lib/apt/lists/mirror.rackspace.com

Advertisement

Fix the Failure to Fetch Error Looking Like E: Could not open file /var/lib/apt/lists/mirror.rackspace.com after running apt-get upgrade. This peculiar error can thrown after fix of ShellShock bug and a bug related to Xen Virtualization. In case of Infrastructure Managed Rackspace Account or device which is only maintained by you or for development, you need to fix the issue yourself. Moreover, this is basically a help guide for anyone.

 

Why Fix E: Could not open file /var/lib/apt/lists/mirror.rackspace.com Shows Up?

 

Peculiarly it happened only to one 01 GB PVHVM device for us. With the same method of update, upgrade; this error never popped up on SSH screen for us. It is possibly related to two things :

  1. python is not properly installed or not upgraded but nova-agent and backspace-cloud-monitoring tool depends on it.
  2. signature verification related error
  3. Ownership of /var/lib/apt has been changed
  4. ServiceNet data connection related issue ( previous update or upgrade related )

It is unlikely that you have done some sin. Fix is easy. We deliberately gave the article’s title E: Could not open file /var/lib/apt/lists/mirror.rackspace.com, so that you can fix faster. Actually the patch will work for all.

Advertisement

---

Fix E- Could not open file :var:lib:apt:lists:mirror.rackspace.com

 

Fix E: Could not open file /var/lib/apt/lists/mirror.rackspace.com

 

Nothing to fear. We have provided 3 ways. Whatever solves, you must read the full guide. There are must to do steps are written at the end.

If Python materials are not installed, you’ll get instruction on the SSH output. Essentially you have to run this command :

Vim
1
apt-get -f install

and manually accept the update. You should skip this step if there is no such instruction is showing up on SSH screen. Run this one first :

Vim
1
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 176A5C84ED67C9ED

Now, try to run apt-get upgrade :

Vim
1
apt-get upgrade

You should be able to upgrade smoothly, again run apt-get update -y and apt-get upgrade, finally type reboot to restart. After the device reboots up, again do SSH and run the commands to make sure that the things are fine.

If the above method fails (it is unlikely), change directory to cd /var/lib/apt and run ls -al command :

Vim
1
cd /var/lib/apt && ls -al

Output should be like this :

Vim
1
2
3
4
5
6
7
8
total 40
drwxr-xr-x  6 root root  4096 Oct 29 16:26 .
drwxr-xr-x 39 root root  4096 Oct 17 08:28 ..
-rw-r--r--  1 root root  4589 Oct 29 16:26 extended_states
drwxr-xr-x  2 root root  4096 Jul  2 18:08 keyrings
drwxr-xr-x  3 root root 12288 Oct 29 16:20 lists
drwxr-xr-x  3 root root  4096 Jul  2 18:08 mirrors
drwxr-xr-x  2 root root  4096 Apr 10  2014 periodic

With proper syntax highlighting, keyrings, lists, mirrors and periodic should get color because of permission. We have to rebuild the cache :

Vim
1
2
3
sudo mv lists lists.old
mkdir -p lists/partial
apt-get update -y && apt-get upgrade

Other way is to plain copy the directories manually from FTP of a device with exact config ( RAM, Flavor, Version of Ubuntu etc.) All login should be as root.

Still, if error are throwing, you have to do these steps. We gave you this key 176A5C84ED67C9ED. You can try with this key 16126D3A3E5C1192 or ask Rackspace. This is almost the last way :

Vim
1
2
3
4
5
6
7
8
sudo -i
#
apt-get clean
cd /var/lib/apt
mv lists lists.old
mkdir -p lists/partial
apt-get clean
apt-get update

The ‘i simulate initial login, option runs the shell specified by the password database entry of the target user as a login shell. This means that login-specific resource files such as .profile or .login will be read by the shell.

We have not written the above paragraph, it is from sudo’s manual page! Now, another problem will start. You will get :

Vim
1
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

It is throwing due to Kernel related issue. You need to upgrade to new kernel :

Vim
1
apt-get update && apt-get upgrade && apt-get dist-upgrade

For 1 GB, you’ll not get any option to choose from. Your Kernel will get upgraded. Normally you should get :

Vim
1
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

After the second run. For 2 GB upwards, you can get options, you should choose vendor specific or local (it actually depends on which flavor) and go ahead. Even after these, you can not solve; you should take a file level backup and spin a new device. It is likely to face problem in future with faulty update stuffs.

Tagged With bug fix OR (bug AROUND(20) fix)

This Article Has Been Shared 380 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Fix E: Could not open file /var/lib/apt/lists/mirror.rackspace.com

  • Weaker Sides of Cloud Computing

    Weaker Sides of Cloud Computing includes the areas which has not reached yet what it promises. In procedural and legal matters, it is still not matured.

  • Redirecting HTTP to HTTPS on Heroku Cloud PaaS

    Redirecting HTTP to HTTPS on Heroku Cloud PaaS specially for Free account is not that easy for a beginner than it appears. There are some ways for redirection.

  • Misunderstandings With Cloud Computing

    Misunderstandings With Cloud Computing is common due to promoting strategies by the companies. Many investments in private clouds are wasted.

  • Optical Networks and Low Latency for Data Centers

    Optical Networks and Low Latency for Data Centers are requirements for new applications and wider variety of services, including those for cloud computing.

  • ERP Software as a Service : Drag Individualization

    ERP Software as a Service making and more companies interested but it still need cautious. For small business, individuals such offers can be interesting.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Zebronics Pixaplay 16 : Entry Level Movie Projector Review February 2, 2023
  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Fix E: Could not open file /var/lib/apt/lists/mirror.rackspace.com," in The Customize Windows, October 29, 2014, February 3, 2023, https://thecustomizewindows.com/2014/10/fix-e-open-file-varlibaptlistsmirror-rackspace-com/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT