Ubuntu软件包没有更新

哈齐尔666

我得到以下输出:

7 packages can be updated.
7 updates are security updates.

Last login: Tue Apr 19 10:04:51 2016 from 10.0.0.199

每当我连接到服务器时。而且我仍然看到这些软件包没有更新!我是root(sudo su)。

sudo apt-get update我得到这个:

myserver@YHserver:~$ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denie                                                                                                                                                             d)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Hit http://il.archive.ubuntu.com wily InRelease
Hit http://il.archive.ubuntu.com wily-updates InRelease
Hit http://il.archive.ubuntu.com wily-backports InRelease
Hit http://il.archive.ubuntu.com wily/main Sources
Hit http://il.archive.ubuntu.com wily/restricted Sources
Hit http://il.archive.ubuntu.com wily/universe Sources
Hit http://il.archive.ubuntu.com wily/multiverse Sources
Hit http://il.archive.ubuntu.com wily/main amd64 Packages
Hit http://il.archive.ubuntu.com wily/restricted amd64 Packages
Hit http://il.archive.ubuntu.com wily/universe amd64 Packages
Hit http://il.archive.ubuntu.com wily/multiverse amd64 Packages
Hit http://il.archive.ubuntu.com wily/main i386 Packages
Hit http://il.archive.ubuntu.com wily/restricted i386 Packages
Hit http://il.archive.ubuntu.com wily/universe i386 Packages
Hit http://il.archive.ubuntu.com wily/multiverse i386 Packages
Hit http://il.archive.ubuntu.com wily/main Translation-en
Hit http://il.archive.ubuntu.com wily/multiverse Translation-en
Hit http://il.archive.ubuntu.com wily/restricted Translation-en
Hit http://il.archive.ubuntu.com wily/universe Translation-en
Hit http://il.archive.ubuntu.com wily-updates/main Sources
Hit http://il.archive.ubuntu.com wily-updates/restricted Sources
Hit http://il.archive.ubuntu.com wily-updates/universe Sources
Hit http://il.archive.ubuntu.com wily-updates/multiverse Sources
Hit http://il.archive.ubuntu.com wily-updates/main amd64 Packages
Hit http://il.archive.ubuntu.com wily-updates/restricted amd64 Packages
Hit http://il.archive.ubuntu.com wily-updates/universe amd64 Packages
Hit http://il.archive.ubuntu.com wily-updates/multiverse amd64 Packages
Hit http://il.archive.ubuntu.com wily-updates/main i386 Packages
Hit http://il.archive.ubuntu.com wily-updates/restricted i386 Packages
Hit http://il.archive.ubuntu.com wily-updates/universe i386 Packages
Hit http://il.archive.ubuntu.com wily-updates/multiverse i386 Packages
Hit http://il.archive.ubuntu.com wily-updates/main Translation-en
Hit http://il.archive.ubuntu.com wily-updates/multiverse Translation-en
Hit http://il.archive.ubuntu.com wily-updates/restricted Translation-en
Hit http://il.archive.ubuntu.com wily-updates/universe Translation-en
Hit http://il.archive.ubuntu.com wily-backports/main Sources
Hit http://il.archive.ubuntu.com wily-backports/restricted Sources
Hit http://il.archive.ubuntu.com wily-backports/universe Sources
Hit http://il.archive.ubuntu.com wily-backports/multiverse Sources
Hit http://il.archive.ubuntu.com wily-backports/main amd64 Packages
Hit http://il.archive.ubuntu.com wily-backports/restricted amd64 Packages
Hit http://il.archive.ubuntu.com wily-backports/universe amd64 Packages
Hit http://il.archive.ubuntu.com wily-backports/multiverse amd64 Packages
Hit http://il.archive.ubuntu.com wily-backports/main i386 Packages
Hit http://il.archive.ubuntu.com wily-backports/restricted i386 Packages
Hit http://il.archive.ubuntu.com wily-backports/universe i386 Packages
Get:1 http://security.ubuntu.com wily-security InRelease [65.9 kB]
Hit http://il.archive.ubuntu.com wily-backports/multiverse i386 Packages
Hit http://il.archive.ubuntu.com wily-backports/main Translation-en
Hit http://il.archive.ubuntu.com wily-backports/multiverse Translation-en
Hit http://il.archive.ubuntu.com wily-backports/restricted Translation-en
Hit http://il.archive.ubuntu.com wily-backports/universe Translation-en
Get:2 http://security.ubuntu.com wily-security/main Sources [45.5 kB]
Get:3 http://security.ubuntu.com wily-security/restricted Sources [2,854 B]
Get:4 http://security.ubuntu.com wily-security/universe Sources [11.7 kB]
Get:5 http://security.ubuntu.com wily-security/multiverse Sources [2,782 B]
Get:6 http://security.ubuntu.com wily-security/main amd64 Packages [145 kB]
Get:7 http://security.ubuntu.com wily-security/restricted amd64 Packages [10.9 k                                                                                                                                                             B]
Get:8 http://security.ubuntu.com wily-security/universe amd64 Packages [52.1 kB]
Get:9 http://security.ubuntu.com wily-security/multiverse amd64 Packages [6,253                                                                                                                                                              B]
Get:10 http://security.ubuntu.com wily-security/main i386 Packages [142 kB]
Get:11 http://security.ubuntu.com wily-security/restricted i386 Packages [10.8 k                                                                                                                                                             B]
Get:12 http://security.ubuntu.com wily-security/universe i386 Packages [52.1 kB]
Get:13 http://security.ubuntu.com wily-security/multiverse i386 Packages [6,430                                                                                                                                                              B]
Hit http://security.ubuntu.com wily-security/main Translation-en
Hit http://security.ubuntu.com wily-security/multiverse Translation-en
Hit http://security.ubuntu.com wily-security/restricted Translation-en
Hit http://security.ubuntu.com wily-security/universe Translation-en
Fetched 555 kB in 2s (227 kB/s)
Reading package lists... Done

我应该怎么做才能更新它?这是安全更新,似乎很重要

我总是apt-get upgrade -y在“更新”之后运行

我并没有删除锁定文件,而是按照此帖子的第二条评论:无法锁定管理目录(/ var / lib / dpkg /)是使用它的另一个过程吗?这没有帮助。我看不到持有“ apt”的过程

root      3004  0.0  0.0   9496  2260 pts/0    S+   10:32   0:00 grep --color=auto apt-get
root@YHserver:/home/myserver# kill -9 3004
bash: kill: (3004) - No such process
root@YHserver:/home/myserver# kill -9 2260
bash: kill: (2260) - No such process
root@YHserver:/home/myserver# kill -9 9496
bash: kill: (9496) - No such process
亚历克斯
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denie                                                                                                                                                             d)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

看来您有某种权限问题。

myserver@YHserver ...

在进行更新/升级时,您应该是root用户。看起来您是“ myserver”而不是root。您是通过ssh还是直接连接到计算机?(您需要启用“通过ssh root”)

请尝试执行patrick编写的命令并在此处报告结果

sudo apt-get update
sudo apt-get upgrade -y

如果这样做没有帮助,请尝试以下操作:

su
apt-get update
apt-get upgrade -y

我想到的另一种可能性是:您是否检查了远程升级?

sudo apt-get dist-upgrade

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

当前项目的软件包来源中没有可用的软件包更新

百胜安装软件包,而没有更新其他软件包或失败...?

如何确定更新的软件包没有受到损害?

百胜更新在软件包上产生错误-因此没有软件包更新

为什么在Ubuntu中没有libiconv软件包?

Ubuntu 12.04:获取具有更新的软件包列表

无法从 Ubuntu 16.04lts 升级到 18.04,因为某些现有软件包没有更新

更新软件包的正确方法是什么?软件更新程序没有更新我的所有软件

无法更新或安装软件包ubuntu

更新Ubuntu软件包无法获取

对Ubuntu软件包更新感到困惑

NPM软件包没有类型

14.04没有软件包imagemagick

没有可用的软件包certbot

ubuntu有哪些软件包约定?

NuGet软件包管理器没有看到一个已更新的软件包

有没有一种方法可以更新软件包以及递归地更新它使用的所有软件包?

有没有更简单的方法来保持本地Go软件包的更新

有没有办法在PyCharm中回滚python软件包的更新

软件包更新:env:ruby_executable_hooks:没有这样的文件或目录

CentOS 7-没有标记为更新的软件包

apt 更新后,arm64 上没有可用于 19.10 的软件包

没有在Ubuntu上构建用于freeswitch的speex软件包

Hadoop&Spark-为什么没有Ubuntu软件包?

软件包'libpng12-0'没有安装候选Ubuntu 18.0.4

E:软件包“ libpng12-0”没有候选安装(Ubuntu 17.04)

Ubuntu告诉我没有不升级的软件包

Ubuntu 16.04 + Bitnami WP AWS + Webmin安装失败+ E:软件包[]没有候选安装

软件包php5没有安装候选版本(Ubuntu 16.04)