【原因】sources.list中源不正确。修改其中的版本为对应版本即可。如把xenial改为bionic。版本代号如下: 18.04:bionic;17.10:artful;16.04:xenial;14.04:trusty。【操作】sudo gedit /etc/apt/sources.list替换对应版本后保存即可。再次sudo apt-get update,一切顺利。【参考】Ubuntu 源使用帮助原文:https://www.cnblogs.com/xixixing/p/12199210.html
sudo apt-get update报错:"E: Could not get lock /var/lib/apt/lists/lock"出现此问题的原因可能是有另外一个程序在运行,导致资源被加锁,不可用。导致资源被锁的原因可能是上次更新源的操作没有完成!从上图可以看出,报错的内容是不能获取那个路径下的 lock,咱们就应该删除哪个lock。删除之后再执行 sudo apt-get update 操作,成功!Ubuntu遇到apt-get update报错:"E: Could not get lock /var/lib/apt/lists/lock"原文:h...
新安装的ubnutu1404 64位,想装vim 时需要更新软件源,但是在apt-get update出错,错误显示 -Reading package list ErrorCould not get lock /var/apt/lists/lock - open (这里面写的啥忘了)解决方案1 (亲测通过):打开softwarecenter 在edit-> softwaresources里选择最合适你计算机的软件源,然后选定。 接着打开终端,输入apt-get update 过一...
错误:Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success
‘if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli;then appstreamcli refresh > /dev/null;fi‘
E: Sub-process returned an error code在运行sudo apt-get update时出现如上信息,解决方法如下:sudo pkill -KILL appstreamcliwget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/ap...
Ubuntu用sudo apt-get update出错: E: Problem executing scripts APT::Update::Post-Invoke-Success ‘if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi‘ E: Sub-process returned an error code解决方法:
先remove libappstream3 sudo apt-get remove libappstream3 or sudo apt remove libappstream3再进行updatesudo apt-get update参考:https://askub...
Reading package lists... Error! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/ftp.sjtu.edu.cn_ubuntu_dists_precise-security_restricted_binary-i386_Packages E: The package lists or status file could not be parsed or opened. 虽然不知道是怎么回事,但是google出来的结果提示可以按如下方法解决,记录之: sudo rm /var/lib/apt/lists/* -vf sud...
借鉴网址: https://blog.csdn.net/q290994/article/details/80577711https://blog.csdn.net/qq_24326765/article/details/81953579 1、备份cp /etc/apt/sources.list /etc/apt/sources.list.bak2、修改 gedit /etc/apt/sources.list3、更改源我用的是更换为中科大源将如下代码粘贴deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiversedeb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security mai...
Ubuntu每次apt-get update都会等很长时间的[Waiting for headers]?回复内容:Ubuntu每次apt-get update都会等很长时间的[Waiting for headers]?换下软件源, 阿里云的应该好一些
项目放在github,做了一个webhook, 自己的服务器检测来自github的post,如果master有变动,就执行
cd /path;
git pull git@ooxxx.com
上面拉取代码没有问题。
最后同时还检测master分支里的compoer.json有改动的时候就执行一次:
php composer.phar update
php composer.phar dump-autoload -o
由于来自github的post数据是用apache指定的www-data 执行 git pull(部署的public key也是这个用户)发现并不能执行上面的composer操作,...
MySQL由Upstart进行处理,而Apache仍然使用传统的Sysvinit脚本。
对于MySQL,可以使用Upstart中的新的覆盖功能来修改启动行为:echo "manual" | sudo tee /etc/init/mysql.override有关更多信息,请参阅Upstart Cookbook中的“ 禁止自动启动作业 ” 一节。
而在16.04版本上,由于使用了Systemd进行接管,以上脚本无法使用,那么需要使用以下脚本来禁止才能通过:#禁止启动sudo systemctl disable mysql#开机启动sudo systemctl ena...
1、首先设置软件源(任选其一使用)
1)国外的软件源(速度慢)
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'2)国内的(速度快)
sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'3)清华源(速度快)
sudo sh -c '. /etc/lsb-rele...
执行sudo apt-get update出现E: Sub-process returned an error code错误
报错提示解决方法报错提示
Aborted (core dumped)
正在读取软件包列表... 完成
W: 无法下载 http://archive.ubuntukylin.com:10006/ubuntukylin/dists/trusty/InRelease 无法连接上 archive.ubuntukylin.com:10006 (120.240.95.36)。 - connect (111: 拒绝连接)
W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
E: Problem executing ...
笔者当前系统ubuntu18.04,使用apt-get update 出现错误如下 Hit:1 http://mirrors.aliyun.com/ubuntu bionic InRelease Hit:2 http://mirrors.aliyun.com/ubuntu bionic-security InRelease Hit:3 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease Hit:4 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease Hit:5 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease Hit:6 http://ppa.launchpad....
1、有时候想更新系统,发现更新失败 sudo apt-get update 2、这时候可以考虑更新系统源,因为ubuntu默认的网站应该是境外的,速度慢而且可能被墙
可以从清华镜像官网获取系统源:ubuntu清华镜像网站
3、备份原来的更新源
cp /etc/apt/sources.list /etc/apt/sources.list.bk 4、sudo权限打开更新源配置文件,将清华的更新源替换sudo vi /etc/apt/sources.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行...
Ubuntu18.04安装ROS Melodic(解决网络原因,先将所需压缩包下载到本地,然后rosdep update)一、ROS介绍
机器人操作系统(Robot Operating System, ROS)是一个应用于机器人上的操作系统,它操作方便、功能强大,特别适用于机器人这种多节点多任务的复杂场景。 因此自ROS诞生以来,受到了学术界和工业界的欢迎,如今已经广泛应用于机械臂、移动底盘、无人机、无人车等许多种类的机器人上。具体探索请参考:ROS探索总结(一)——ROS简...