• 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 171 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 (22.1K 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

  • Big Data in Sports May 20, 2022
  • FaaS Versus PaaS Deployment: What You Should Know May 18, 2022
  • What Is A Digital Media Consultancy? May 17, 2022
  • How Artificial Intelligence (AI) Is Changing The Way We Play Bingo May 16, 2022
  • Why You Need A Big Data Consultant May 15, 2022

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, May 20, 2022, https://thecustomizewindows.com/2014/10/fix-e-open-file-varlibaptlistsmirror-rackspace-com/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

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

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

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