CentOS7にxrdpへインストールする際、パッケージの依存性の問題により、xrdpをインストールすることができない(正しくはxorgxrdpのインストールができない)場合があります。
# yum install xrdp tigervnc-server Loaded plugins: fastestmirror, langpacks Determining fastest mirrors epel/x86_64/metalink | 8.4 kB 00:00:00 * base: ftp.iij.ad.jp * epel: d2lzkl7pfhq30w.cloudfront.net * extras: ftp.iij.ad.jp * updates: ftp.iij.ad.jp base | 3.6 kB 00:00:00 epel | 3.2 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/7): base/7/x86_64/group_gz | 166 kB 00:00:00 (2/7): epel/x86_64/group_gz | 88 kB 00:00:00 (3/7): epel/x86_64/updateinfo | 930 kB 00:00:00 (4/7): extras/7/x86_64/primary_db | 205 kB 00:00:00 (5/7): epel/x86_64/primary | 3.6 MB 00:00:00 (6/7): base/7/x86_64/primary_db | 5.9 MB 00:00:00 (7/7): updates/7/x86_64/primary_db | 6.0 MB 00:00:00 epel 12720/12720 Package tigervnc-server-1.8.0-5.el7.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package xrdp.x86_64 1:0.9.8-1.el7 will be installed --> Processing Dependency: xorgxrdp for package: 1:xrdp-0.9.8-1.el7.x86_64 --> Running transaction check ---> Package xorgxrdp.x86_64 0:0.2.8-3.el7 will be installed --> Processing Dependency: xorg-x11-server-Xorg(x86-64) = 1.20.1 for package: xorgxrdp-0.2.8-3.el7. x86_64 --> Finished Dependency Resolution Error: Package: xorgxrdp-0.2.8-3.el7.x86_64 (epel) Requires: xorg-x11-server-Xorg(x86-64) = 1.20.1 Installed: xorg-x11-server-Xorg-1.19.5-5.1.el7_5.0.1.x86_64 (@updates) xorg-x11-server-Xorg(x86-64) = 1.19.5-5.1.el7_5.0.1 Available: xorg-x11-server-Xorg-1.19.5-5.el7.x86_64 (base) xorg-x11-server-Xorg(x86-64) = 1.19.5-5.el7 Available: xorg-x11-server-Xorg-1.19.5-5.1.el7_5.x86_64 (updates) xorg-x11-server-Xorg(x86-64) = 1.19.5-5.1.el7_5 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
これはCentOS7においては既知の不具合のようです。
- Bug 1565957 - xorgxrdp needs to be rebuilt against new Xorg in RHEL7.5
- https://bugzilla.redhat.com/show_bug.cgi?id=1565957
- XRDP update dependency problem on CentOS 7.4
- https://github.com/neutrinolabs/xrdp/issues/1121
- Unable to install XRDP on the Azure Centos 7 VM
- https://superuser.com/questions/1319711/unable-to-install-xrdp-on-the-azure-centos-7-vm
- Cant' install xrdp on CentOS 7.5
- https://unix.stackexchange.com/questions/482502/cant-install-xrdp-on-centos-7-5
対応方法
CR Repoを有効にして、xrdpをインストールします。
# yum install --enablerepo=cr xrdp
CR Repo (The Continuous Release Repository)に関しては、以下のリンクを参照ください。
- The Continuous Release (CR) Repository
- https://wiki.centos.org/AdditionalResources/Repositories/CR