如何在 Ubuntu 17.04 上安装 pantheon-files?

如何在 Ubuntu 17.04 上安装 pantheon-files?

我尝试使用这个 ppa:

sudo apt-add-repository ppa:elementary-os/daily
sudo apt-get update

但它说“无法找到包 pantheon-files”

grep "^deb " /etc/apt/sources.list

deb http://cz.archive.ubuntu.com/ubuntu/ zesty main restricted
deb http://cz.archive.ubuntu.com/ubuntu/ zesty-updates main restricted
deb http://cz.archive.ubuntu.com/ubuntu/ zesty universe
deb http://cz.archive.ubuntu.com/ubuntu/ zesty-updates universe
deb http://cz.archive.ubuntu.com/ubuntu/ zesty multiverse
deb http://cz.archive.ubuntu.com/ubuntu/ zesty-updates multiverse
deb http://cz.archive.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu zesty-security main restricted
deb http://security.ubuntu.com/ubuntu zesty-security universe
deb http://security.ubuntu.com/ubuntu zesty-security multiverse

apt policy pantheon-files
N: Unable to locate package pantheon-files

答案1

没有 17.04 版本。唯一的方法是:

编辑 elementary os ppa 的源列表:

sudo nano /etc/apt/sources.list.d/elementary-os-ubuntu-daily-zesty.list

将“zesty”或 ubuntu 版本名称更改为“xenial”,如下所示:

deb http://ppa.launchpad.net/elementary-os/daily/ubuntu xenial main
# deb-src http://ppa.launchpad.net/elementary-os/daily/ubuntu xenial main

后:

sudo apt-get update
sudo apt-get install pantheon-files

答案2

首先添加存储库(你已经做了)

sudo add-apt-repository ppa:elementary-os/daily

添加存储库时始终执行

sudo apt-get update

sudo apt-get dist-upgrade

进而

sudo apt-get install pantheon-files

应该这样做

相关内容