没有软件中心的权限

我今天刚刚安装了Ubuntu 13.04(从11.04开始)。 我无法使用Dash中的软件中心。 当我从破折号启动它时,它总是说我没有足够的权限来安装软件。 但我的用户是sudo adm和lpadmin组,应该如此。 我可以使用它的唯一方法是:在控制台中使用“sudo software-center”。 为什么不像往常一样只问我的密码? 这是什么问题?

如果您错误地在/usr/share/polkit-1/actions/org.debian.apt.policy文件中有类似内容:

 ...  Install or remove packages To install or remove software, you need to authenticate.  no no no   ... 

当您尝试从Ubuntu软件中心安装某些内容时,您将收到以下警告:

警告

您还可以查看警告中的详细信息。

所以,检查/usr/share/polkit-1/actions/org.debian.apt.policy文件,确保看起来像这样:

    Apt Daemon http://launchpad.net/aptdaemon/ package-x-generic  List keys of trusted vendors To view the list of trusted keys, you need to authenticate.  auth_admin auth_admin auth_admin_keep    Remove downloaded package files To clean downloaded package files, you need to authenticate.  auth_admin auth_admin yes    Change software configuration To change software settings, you need to authenticate.  auth_admin auth_admin auth_admin_keep    Change software repository To change software repository settings, you need to authenticate.  auth_admin auth_admin auth_admin_keep    Install package file To install this package, you need to authenticate.  auth_admin auth_admin auth_admin_keep    Update package information To update the software catalog, you need to authenticate.  auth_admin auth_admin yes    Install or remove packages To install or remove software, you need to authenticate.  auth_admin auth_admin auth_admin_keep    Install software from a high-trust whitelisted repository. To install software, you need to authenticate.  auth_admin auth_admin auth_admin_keep    Add a new repository and install packages from it To install software from a new source, you need to authenticate.  auth_admin auth_admin auth_admin_keep    Add a new repository of purchased software and install packages from it To install purchased software, you need to authenticate.  auth_admin auth_admin auth_admin_keep    Upgrade packages To install updated software, you need to authenticate.  auth_admin auth_admin auth_admin_keep    Cancel the task of another user To cancel someone else's software changes, you need to authenticate.  auth_admin auth_admin auth_admin    Set a proxy for software downloads To use a proxy server for downloading software, you need to authenticate.  auth_admin auth_admin auth_admin    

要编辑它,请切换到终端中的root用户:

 sudo -i 

然后运行以下命令:

 gedit /usr/share/polkit-1/actions/org.debian.apt.policy 

并使用CTRL D或键入exit关闭该根会话。