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 the source cannot be updated by update in Debian environment and change the cloud image

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article shows you how to solve the problem that the source can not be updated by update in the Debian environment and how to change the cloud image. The content is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Whether we are going to install the WEB environment in the VPS server or compile other software features, we will definitely think of the update environment after we get the VPS login to SSH. This ensures that the source in the server is up-to-date and the patch is up-to-date. Today, I saw an error message when apt-get update updated the source in a Debian environment, and then I certainly couldn't install the required software through direct apt-get (I need to install SQLITE).

From the image above, you can see that the source is not accessible or invalid, so there is "E: Some index files failed to download, they have been ignored, or old ones used instead." If the error indicates the problem, how can we solve the problem?

If we are also in the Debian environment, then modify Ali Yunyuan, which can solve this problem, of course, there are other sources such as 163s, we users do not care, who likes to use the old left to use which one.

First, replace the file

/ etc/apt/sources.list

Second, replace the source content

Deb http://mirrors.aliyun.com/debian wheezy main contrib non-free

Deb-src http://mirrors.aliyun.com/debian wheezy main contrib non-free

Deb http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free

Deb-src http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free

Deb http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free

Deb-src http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free

We replace all the contents of sources.list with the Ali cloud source above, and then apt-get update-y again to complete the update.

The above content is how to solve the problem that the source cannot be updated by update in the Debian environment and change the cloud image. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow 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

Wechat

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

12
Report