Ubuntu 14.04 apt-get 错误
来源:互联网 发布:ck解析源码 编辑:程序博客网 时间:2024/06/07 02:27
安装Ubuntu 14.04,运行apt-get update出现错误,有以下几种情况:
1.由于某些文件在服务器已经被移动,可以修改/etc/apt/sources.list文件,更改源为old-releases.ubuntu.com,可以运行以下命令直接修改。
sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list.d/official-package-repositories.list
2. 由于运营商将404页面重定向到自己的页面,这样当更新的时候,本该404的页面变成了运营商的页面,引起更新错误。
第一个方法是用vpn,绕过运营商。第二个在另一台机器(虚拟机可以)设置一个代理服务器,代理里面设置将本该返回404的页面返回404,其他页面走正常运营商,本机hosts文件中将源中用到的url指向代理机器
3.出现security.ubuntu.com ......................Hash Sum mismatch
直接把源文件中的 security.ubuntu.com什么的注释掉
4.运行以下命令清空缓存,重新update
rm -fr /var/lib/apt/lists/*
sudo apt-get clean
sudo apt-get update
0 0
- Ubuntu 14.04 apt-get 错误
- ubuntu 14.04LTS apt-get update时出现错误解决
- Ubuntu 14.04下,apt-get update出现错误
- ubuntu 12.04 sudo apt-get update 错误
- Ubuntu apt-get install错误:unmet dependencies
- ubuntu技巧--sudo apt-get update错误
- ubuntu 安装apt-get常见错误
- Ubuntu 14.10 apt-get update 404错误
- ubuntu使用apt-get 出现错误解决方案
- Linux ubuntu apt-get update错误
- ubuntu apt-get 安装错误总结
- Ubuntu 16.4.3 apt-get update 错误
- 更换Ubuntu 14.04的apt-get
- Ubuntu 14.04 搭建 apt-get 服务器
- Ubuntu 14.04 通过 apt-get 安装 jdk
- Ubuntu 14.04 apt-get update出现E: Encountered a section with no Package: header错误
- ubuntu apt-get 使用指南
- ubuntu apt-get 使用指南
- 前端开发3大坑
- $(document).ready 在2.0版本下的bootstrap会失效
- Spring mvc json 乱码
- static详解 写的确实很好,方便理解。。。
- 五分钟搞懂Gson的用法
- Ubuntu 14.04 apt-get 错误
- 139端口的入侵
- Android知识图谱
- centos下安装使用解压工具:rar/unrar
- 10.php桥接模式
- jdbc连接Microsoft SQL Server 2014
- Quartz2D简单介绍
- 大尺寸网页在小分辨率显示器上或小窗口上的居中显示
- cocos2dx 绽开效果