参考: Docker containers can't resolve DNS on Ubuntu 14.04 Desktop Host Unable to locate package错误解决办法 问题: 运行: make -f docker.mk base-docker-image 时,出现如下错误: Sending build context to Docker daemon 9.728 kB Step 1/25 : FROM ubuntu:14.04 ---> b969ab9f929b…
当用apt-get更新软件包时常出现错误提示Unable to locate package update, 尤其是在ubuntu server上,解决方法是:     先更新apt-get         #sudo apt-get update     执行完后,问题就解决了.     继续更新:         #sudo apt-get upgrade   转:http://blog.sina.com.cn/s/blog_49b2f03a0100o6qa.html…
在虚拟机上新装了一个ubuntu 12.10,想在上面装一个Git,却发生了以下错误信息 我觉得原因可能是我换了163的源,没有更新所以找不到这个包. 这时候就要使用 sudo apt-get update  指令来更新源 接下来就可以正常安装啦-…
问题: VMware虚拟机安装了ubuntu 11.04,在使用apt-get安装软件时一直提示E:Unable to locate package. 百度了原因,说是要更新源,使用命令:sudo apt-get update更新了,但更新之后问题还是存在: 解决方案: 主要还是源的问题,目前网上找的很多源都是很久以前的了,很多的可能都不能用了: 然后自己重新下载了一个ubuntu 14.04版本的源替换原来的sources.list文件,然后运行sudo apt-get update更新后就可…
https://blog.csdn.net/long19910605/article/details/47017889/ 问题: 更新源时提示不能联网(does the network require authentication?),但是明明可以ping通外网啊,原来是不能访问这个默认源,所以更换一下源 chen@ubuntu:~$ sudo apt-get update Get: http://ppa.launchpad.net/nginx/stable/ubuntu xenial InRe…
今天在初始化一台新的ubuntu 服务器时,敲上了 sudo apt-get install nginx 来安装nginx, 却发现提示:  Reading package lists... Done        Building dependency tree               Reading state information... Done        E: Unable to locate package nginx 然后敲上: sudo apt-get update, 这…
有时候在Ubuntu命令行中执行安装某个文件的时候,如:sudo apt-get install xinit ,报 “unable to locate package...” 错误,解决办法如下 1. 首先查看是不是有别的进程在装软件,比如新立得. 如果有的话就关掉.没有的往下看 在终端输入sudo rm /var/lib/apt/lists/lock 强制把/var/lib/apt/lists/lock删掉. 2. 原因可能是换了源,但却在本机上没有更新,所以找不到这个包. 这时候就要使用 s…
今天在 Ubuntu 上执行 sudo apt install sl 命令,结果报错:E:Unable to locate package sl 上网查询了一下,先更新一下 apt-get,执行:sudo apt-get update 完成更新,重新执行 sudo apt install sl ,安装完成.…
在Ubuntu 上使用apt-get 安装包时遇到  Unable to locate package 的信息 解决方案: 更细apt-get然后重新安装 #sudo apt-get update   执行完后,问题就解决了.…
装好Ubuntu Server 12.04后,用apt-get安装telnetd报"E: Unable to locate package telnetd",解决方法如下: 虚拟机采用NAT方式与主机连接: sudo apt-get update(更新apt-get的软件源) sudo apt-get install telnetd sudo /etc/init.d/openbsd-inetd restart 验证: ps -ef|grep telnetd "openbsd-…
前言 刚安装好的ubuntu 17发现apt-get安装指令异常. 故经网上搜索调查发现,发现这个问题基本是因为apt-get需要更新的缘故. 解决方案 只需使用命令升级更新即可. sudo apt-get update 参考:https://www.jianshu.com/p/a15c2d3b54dd…
Refer to http://www.crifan.com/ubuntu_change_sources_list_to_163/ 1. backup /etc/apt/sources.list 2. edit this file, and add following deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ p…
在使用docker容器时,有时候里边没有安装vim,敲vim命令时提示说:vim: command not found,这个时候就需要安装vim,可是当你敲apt-get install vim命令时,提示: 这时候需要敲:apt-get update 这个命令的作用是:同步 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引,这样才能获取到最新的软件包. 等更新完毕以后再敲命令:apt-get install vim命令即可…
http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631046893b4c4380146d96864968d4e414c42246161427b8ec673517708d9e28301cfc091ab1a168252a5577f1c893d60bc0ba99282482223f7308c31c528516e89715759f77875a98e944f0ba816cceff8195884353bb11562bd9a3de0d1714bb…
$ sudo add-apt-repository main $ sudo add-apt-repository universe $ sudo add-apt-repository restricted $ sudo add-apt-repository multiverse 再 sudo apt-get update 最后再apt-get install xxxx 成功!…
背景: 在准备ARM交叉编译环境时,执行命令: DISTRO=fsl-imx-x11 MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-x11,报错:Missing package:makeinfo,chrpath, 接着,依次执行sudo apt-get install makeinfo,sudo apt-get install chrpath,chrpath可正常安装,但makeinfo却安装不了. 问题现象: 安装makei…
解决方案参考 https://blog.csdn.net/u010622613/article/details/83017163…
apt-get update --> Bad header line (fresh install) fresh natty install i386 desktop. I get this errors: Code: $ sudo apt-get update Ign http://extras.ubuntu.com natty InRelease Ign http://archive.ubuntu.com natty InRelease Ign http://archive.ubuntu.c…
sudo apt-get update 错误 http://archive.canonical.com natty InRelease 错误 http://mirror.rootguide.org natty InRelease 错误 http://mirror.lupaworld.com natty InRelease 错误 http://mirrors.shlug.org natty InRelease 错误 http://tw.archive.ubuntu.com natty InRele…
Ubuntu 更新 apt-get update 的时候 出现 Err: http://us.archive.ubuntu.com/ubuntu bionic InRelease Could not resolve 'us.archive.ubuntu.com' 这个错误的时候 修改 resolv.conf 文件中的 nameserver 中的值. sudo vim /etc/resolv.conf 将 nameserver 中的值替换成 nameserver 8.8.8.8 保存文件后.重启n…
今天在其中一台Linux 中使用Docker命令创建镜像时失败,报错提示: Temporary failure resolving ‘archive.ubuntu.com’ 典型的DNS解析问题,尝试直接在shell中执行apt-get install,一切正常,查看主机中/etc/resolv.conf,为之前手工配置的8.8.8.8,8.8.4.4. 跟踪发现在docker build过程中,DNS自动添加了一行nameserver(估计是VPS厂商提供的默认配置,或因为主机resolv.c…
 之前执行apt-get 不管是什么软件或apt-get update都会遇到fail to fetch http://us.archive.ubuntu.com quantal-updates/main Sources   404  Not Found 找到原因了,因为我使用的ubuntu12.10已经不再被支持了,它也不是LTS(长期支持版,有5年,普通版只有1-2年),只有升级成14.04版才能用apt-get更新软件,14.04版是LTS.如果你不相信这个残酷的事实可以直接打开 http…
报错信息: W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8CF63AD3F06FC659 解决: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8CF63AD…
可能是下载过程中出现错误,重新执行docker pull ubuntu,在执行docker run -i -t ubuntu /bin/bash就OK了.…
今天在更新运行apt-get update的时候出现了如下的错误: W: GPG error: http://extras.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2AF80 解决方法: sudo apt-key adv --keyserver keyserver.ub…
1.完整的错误信息如下: E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 11d 10min 50s). Updates for this repository will not be applied 2.笔者遇到的这个问题通过以下方式解决: 2.1 同步时间 sudo ntpdate cn.poo…
问题描述: 在使用apt-get update 时更行列表,显示[Connecting to archive.ubuntu.com (2001:67c:1360:8001::21)]超时 分析: 我已更改为ubuntu的阿里云,不应该出现访问不了的情况,通过搜索,得知原因如下ubuntu默认走ipv6,但是我更改的阿里源应该不支持ipv6. 解决方法: 打开/etc/gai.conf(地址信息的配置文件),找到#precedence ::ffff:0:0/96  100, 将"#" 去…
Get Docker Engine - Community for Ubuntu Uninstall old versions$ sudo apt-get remove docker docker-engine docker.io containerd runc $ sudo apt-get update$ sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-c…
操作系统: Ubuntu 18.04 运行镜像: continuumio/anaconda3, based on debian Step 1) 安装 Docker # update the apt package index sudo apt-get update # install packages to allow apt to use a repository over HTTPS sudo apt-get install apt-transport-https ca-certificat…
安装过程出错 首先出现问题sudo apt-get updateReading package lists… Error!E: Encountered a section with no Package: headerE: Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_natty_main_i18n_Translation-enE: The package lists or status…