环境: Ubuntu 20.04.2 LTS

问题描述

使用 xrdp远程登录 Ubuntu,可能会出现弹框要求输入密码

描述信息一般是:

  • 需要授权来创建色彩管理设备 / Authentication is required to create a color managed device
  • 需要授权来移除色彩管理设备 / Authentication is required to remove a color managed device
  • 刷新系统软件源需要认证 / Authentication is required to refresh the system repositories

解决方案

1. 解决“色彩管理设备” / “color managed device” 弹窗
创建文件 sudo gedit /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla并写入内容:

[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes

2. 解决“刷新系统软件源需要认证” / “refresh the system repositories” 弹窗
创建文件 sudo gedit /etc/polkit-1/localauthority/50-local.d/46-allow-packagekit.pkla并写入内容:

[Allow Refresh Repository all Users]
Identity=unix-user:*
Action=org.freedesktop.packagekit.system-sources-refresh
ResultAny=no
ResultInactive=no
ResultActive=yes

移除 /var/crash中的所有文件

sudo rm /var/crash/*

重启后远程桌面连接

参考:https://blog.csdn.net/wu_weijie/article/details/108481456

标签: none

添加新评论