apt-get error

执行apt-get update产生错误

【错误现象】

E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)

之前操作使用ctrl+c强制退出apt-get 指令,而实际apt-get进程依然存在。

【解决方法】

【a】查看进程(使用grep指令过滤其他进程)

ps -e | grep apt

【b】apt-get进程依然存在

6362 ? 00:00:00 apt

6934 ? 00:00:00 apt-get

【c】销毁进程

sudo killall apt

sudo killall apt-get

【d】重新执行

sudo apt-get update

时间: 2024-08-06 00:05:46

apt-get error的相关文章

apt GPG error

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 16126D3A3E5C1192 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 su

ubunta apt install error

ubuntu系统: 用apt-get命令安装一些软件包时,总报错:E:could not get lock /var/lib/dpkg/lock -open等 出现这个问题的原因可能是有另外一个程序正在运行,导致资源被锁不可用.而导致资源被锁的原因,可能是上次安装时没正常完成,而导致出现此状况. 解决方法:输入以下命令 sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock 之后再安装想装的包,即可解决. 例如: sudo 

调用webservice客户端方法 runtime modeler error: Wrapper class ××× is not found. Have you run APT to generate them?

用wsimport生成webservice的客户端以后,调用客户端生成方法时总是出现 runtime modeler error: Wrapper class stardand.nrcms.ncking.com.Login is not found. Have you run APT to generate them?这个错误; 这个公司的接口我原来是做过的,现在不同的是,换了个地址,和原来的环境是一样的,jdk1.6.20,然后加入了myeclipse里边的jax-ws 2.1 Runtime

解决ubuntu使用命令sudo apt -get install 安装东西时出现"E: Sub-process /usr/bin/dpkg returned an error code (1) "的错误

问题描述: 今天在使用命令 "sudo apt-get install python3-pip"安装时,总是出现如下图这样的错误,开始以为是以为自己python版本的问题,后来发现无论装什么东西都会出现,这样的错误,错误展示: 解决方案: 进入如下目录: cd /var/lib/dpkg 删除下面这个文件: sudo mv info info.baksudo 重新创建这个文件: sudo mkdir info 如下图所示: 再次安装: (1)安装pip3: sudo apt-get i

使用APT减少MVP的冗余代码

前言 不知道从何时起,移动端开发都开始采用MVP.我们在认识到MVP有点的时候,也不妨会察觉到它其实也有很多恼人的地方,比如,我们针对每种状态渲染不同的视图: private void renderInit() { mViewA.setVisibility(View.VISIBLE); mViewB.setVisibility(View.GONE); mViewC.setVisibility(View.GONE); mViewD.setVisibility(View.GONE); mViewE.

Ubuntu 16.04出现: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'

错误: 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 在运行

linux学习(六) Ubuntu14.04(64位)配置android环境报错(...adb": error=2, 没有那个文件或目录)的解决方案

1.问题描述: 最近测试android环境的时候,运行程序,提示以下错误信息: Cannot run program error=2, 没有那个文件或目录' while attempting to get adb. 运行环境是 unbuntu 14.04 64位系统; 2.问题原因: 在网上搜索答案的时候,找到了问题的原因:因为系统是64位的,而Android sdk只有32bit的程序.所以就存在这不兼容的问题,缺少一些sdk运行的库. 3.解决方案: 很多软件只有32位的,还有很多比较依赖3

nginx1.11.9 apt即源码编译各平台测试

测试系统:ubuntu16.04 server,debian8.7 netinstall,centos7 mini. 系统配置:使用virtualbox安装,内存1G,cpu单核,物理CPU  i5-4460 3.20GHz 测试目标:源码编译nginx-1.11.9,源码编译openresty/1.11.2.2,ubuntu apt nginx-1.10,debian apt nginx-1.6 测试工具:ab 2.3 测试方法:安装完成后,使用index.html内容为"helloworld

When You Get A GPG Error Updating Your System

Sometimes you may get an error when doing apt-get update, just like this one: To resolve this problem, you just delete all files in /var/lib/apt/lists, and apt-get update again. Here is some information about `/var/lib/apt/lists/: The solution is fro

CentOS系统yum源使用报错:Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge.

服务器上的yum突然不好使用,使用yum的时候报错如下:[[email protected] src]# yum list......Could not retrieve mirrorlist http://mirrorlist.repoforge.org/el6/mirrors-rpmforge error was14: PYCURL ERROR 7 - "couldn't connect to host"http://apt.sw.be/redhat/el6/en/x86_64/r