在 Ubuntu 14.04 中安装和更新 Skype 时出现错误消息

在 Ubuntu 14.04 中安装和更新 Skype 时出现错误消息

问题解决了!谢谢!

当我尝试安装 Skype 时收到一条错误消息。

W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ trusty/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_trusty_partner_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
kp@kp-Satellite-C660D:~$ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
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?

我刚刚更新到 Ubuntu 14.04 并在升级过程中出现错误消息。

我是新手,不擅长这个。有人可以帮忙吗?

非常感谢

答案1

而不是apt-get update做到sudo apt-get update

答案2

跑步 :

sudo rm /var/lib/apt/lists/lock && sudo rm /var/lib/dpkg/lock && sudo apt-get update

如果这不能解决问题,则运行:

gksudo gedit /etc/apt/sources.list

找到重复的行并在其中一行前面http://archive.canonical.com/ubuntu/ trusty/partner i386 Packages添加。#

相关内容