apt-get update时卡在 [0%]waiting for headers

简介: apt-get update时卡在 [0%]waiting for headers

背景


ubuntu系统内部执行apt-get update  卡在0% [Waiting for headers]    不动


处理过程  


注意务必做好快照备份后再操作。


内部依次执行下述命令   :  

$ sudo apt-get clean
$ cd /var/lib/apt
$ sudomv lists lists.old
$ sudomkdir-p lists/partial
$ sudo apt-get clean
$ sudo apt-get update

相关文章
|
11天前
|
网络协议 Ubuntu Docker
docker内apt-get update Waiting for headers 0%
通过这些步骤,通常可以解决 `apt-get update`卡住的问题,确保容器中的包管理操作顺利进行。
38 5
|
7月前
|
Ubuntu Docker 容器
sudo apt-get update失败已经解决 报错 The update command takes no arguments
sudo apt-get update失败已经解决 报错 The update command takes no arguments
259 0
解决helm部署报错Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress
在使用helm install 或者helm upgrade的时候,如果出现了异常中断操作, 经常会出现UPGRADE FAILED并且导致后续无法更新,那我们该如何处理呢?
4876 0
|
Python
解决"easy_install command not found"问题记录
解决"easy_install command not found"问题记录
608 0
|
Ubuntu 开发工具 git
apt install git:Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/git/git-man_2.17.1-1ubuntu0.11_all.deb 404 Not Found [IP: 91.189.91.39 80]
357 0
apt install git:Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
|
Python
pip安装第三方库报错WARNING: Retrying (Retry(total=4,connect=None, read=Noneredirect=None,status=None))解决
pip安装第三方库报错WARNING: Retrying (Retry(total=4,connect=None, read=Noneredirect=None,status=None))解决
1639 0
pip安装第三方库报错WARNING: Retrying (Retry(total=4,connect=None, read=Noneredirect=None,status=None))解决
|
Linux 网络虚拟化
ROS安装遇到 sudo rosdep init 与rosdep update出现error loading sources list
ROS安装遇到 sudo rosdep init 与rosdep update出现error loading sources list
366 0
ROS安装遇到 sudo rosdep init 与rosdep update出现error loading sources list
|
Ubuntu 网络安全 开发工具
Ubuntu E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 错误
Ubuntu E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 错误
925 0
|
关系型数据库 MySQL
You can remove cached packages by executing ‘yum clean packages‘. Error: GPG check FAILED
我们在使用服务器时安装mysql遇到的问题,现将有效的解决方案列出来 原因是:GPG对于包的源key的验证没有通过
You can remove cached packages by executing ‘yum clean packages‘. Error: GPG check FAILED