本文作者: slience_me
文章目录
已解决
1. Authentication required to refresh system repositories
cd /etc/polkit-1/localauthority/50-local.d/
vi allow-packagekit.pkla
内容如下:
[Allow Refresh Repository all Users]
Identity=unix-user:*
Action=org.freedesktop.packagekit.system-sources-refresh
ResultAny=no
ResultInactive=no
ResultActive=yes
2. System policy prevents control of network connections
cd /etc/polkit-1/localauthority/50-local.d/
vi allow-network.pkla
内容如下:
[Allow Network]
Identity=unix-user:*
Action=org.freedesktop.NetworkManager.network-control
ResultAny=no
ResultInactive=no
ResultActive=yes
3. 可能遇到的问题
注意:你需要使用root权限的用户进行操作
su root
输入密码
但是,如果这个文件夹归属root,但是系统没有root用户,只有ubuntu作为超级管理员
这种情况,你没有办法打开文件,如何处理:只能修改文件权限
sudo chmod 777 localauthority
cd localauthority
cd ..
sudo vim ..pkla
输入
:wq
参考文献: