I have installed Fedora 31 Workstation on a Hyper-V virtual machine, and am trying to install xrdp to set up an RDP server, which is an essential step for enabling “Enhanced Session” mode for the Fedora VM in Hyper-V.
However, a simple sudo dnf install xrdp results in an error indicating that dnf is unable to find the package xrdp. Replacing dnf with yum results in the same error.
I am able to find the package source of xrdphere, but cannot find the package xrdp on the Fedora Packages site. When I search xrdp on the site, the only result is a package named freerdp.
I am new to Fedora and do not really have much knowledge about the package management mechanism of RPM and YUM/DNF. How can I install xrdp on my Fedora 31? Do I have to add some additional repos (like EPEL, but EPEL seems to be targeted at CentOS and RHEL)?
Hi @undefinedexception, welcome to Fedora! Please take a minute to go through the introductory posts in the #start-here category if you’ve not yet had the chance.
That’s odd. Is this the standard workstation ISO image? I’m also running F31 here, and dnf find xrdp just fine:
$ cat /etc/os-release
NAME=Fedora
VERSION="31 (Workstation Edition)"
ID=fedora
VERSION_ID=31
VERSION_CODENAME=""
PLATFORM_ID="platform:f31"
PRETTY_NAME="Fedora 31 (Workstation Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:31"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f31/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=31
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=31
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation
$ sudo dnf install xrdp
Last metadata expiration check: 1:20:28 ago on Wed 19 Feb 2020 09:12:30 GMT.
Dependencies resolved.
==============================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================
Installing:
xrdp x86_64 1:0.9.12-4.fc31 updates 436 k
Installing dependencies:
tigervnc-license noarch 1.10.1-2.fc31 updates 13 k
tigervnc-server-minimal x86_64 1.10.1-2.fc31 updates 1.1 M
Installing weak dependencies:
xrdp-selinux x86_64 1:0.9.12-4.fc31 updates 12 k
Transaction Summary
==============================================================================================================================================================================================
Install 4 Packages
Total download size: 1.6 M
Installed size: 4.9 M
Is this ok [y/N]: N
The fedora packages site isn’t always complete. It is sometimes out of sync and drops packages if there’s too much load. src.fedoraproject.org is the authoritative source on packages.
So, can you please ensure that your system is up to date, and then, can you please provide the output of:
The ISO image I used to install Fedora is downloaded from https://getfedora.org, so I think it is likely to be a standard workstation image. I have checked the output of cat /etc/os-release and have found the output identical to yours. I have also run sudo dnf upgrade to make the system up to date.
However, dnf is still unable to find xrdp. Here is the output of dnf repolist:
@FranciscoD Thank you, but I’m sorry that installation of downloaded RPM packages does not work either. I suspect that I have had a misunderstanding of the output of dnf; maybe it is not saying “cannot find package in the repos”?
This is my output for sudo dnf install xrdp:
$ LANG=C sudo dnf install xrdp
Last metadata expiration check: 2:57:26 ago on Wed Feb 19 18:50:47 2020.
All matches were filtered out by exclude filtering for argument: xrdp
Error: Unable to find a match: xrdp
This is my output for sudo dnf install xrdp-0.9.12-4.fc31.x86_64.rpm (to install downloaded RPM packages):
$ LANG=C sudo dnf install xrdp-0.9.12-4.fc31.x86_64.rpm
Last metadata expiration check: 2:56:48 ago on Wed Feb 19 18:50:47 2020.
No match for argument: xrdp-0.9.12-4.fc31.x86_64.rpm
Error: Unable to find a match
You need to give the full path to the rpm file. The easiest way is:
$ mkdir ~/xrdp-rpms # create a new directory
# Download the xrdp and xrdp-selinux packages for your architecture to this directory
# Then: switch to this directory, and tell dnf to install these files:
$ cd ~/xrdp-rpms
$ ls # confirm that the rpms are here
$ sudo dnf install ./*.rpm
If you do not give the complete path to the rpm file, dnf assumes you are asking it to install from the repositories.
Also, there’s may be something off with your repository configurations. Can you please paste these two files here for us to see?
I changed to use the complete path, but unfortunately it does not seem to work, even when I use absolute paths:
$ echo $PWD # to show current directory
/home/pilot/shared/xrdp
$ ls # to confirm rpms are here
xrdp-0.9.12-4.fc31.x86_64.rpm xrdp-selinux-0.9.12-4.fc31.x86_64.rpm
$ LANG=C sudo dnf install ./*.rpm
Last metadata expiration check: 4:55:49 ago on Wed Feb 19 18:50:47 2020.
No match for argument: xrdp-0.9.12-4.fc31.x86_64.rpm
Error: Unable to find a match
$ LANG=C sudo dnf install /home/pilot/shared/xrdp/xrdp-0.9.12-4.fc31.x86_64.rpm
Last metadata expiration check: 4:57:02 ago on Wed Feb 19 18:50:47 2020.
No match for argument: /home/pilot/shared/xrdp/xrdp-0.9.12-4.fc31.x86_64.rpm
Error: Unable to find a match
I previously configured manually to use the mirror provided by Tsinghua University to enhance the speed of downloading package metadata. When I checked my .repo files just now, I realized this and replaced the modified .repo with their original version (which is backed up before switching to the mirror), but the same error still occurs. Here are my .repo files now (i.e. the original version backed up):
Well, that’s even odder. It’s certainly working for me as expected:
$ ls
xrdp-0.9.12-4.fc31.x86_64.rpm xrdp-selinux-0.9.12-4.fc31.x86_64.rpm
$ sudo dnf install ./*rpm
Last metadata expiration check: 2:10:42 ago on Wed 19 Feb 2020 15:16:36 GMT.
Dependencies resolved.
==============================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================
Installing:
xrdp x86_64 1:0.9.12-4.fc31 @commandline 436 k
xrdp-selinux x86_64 1:0.9.12-4.fc31 @commandline 12 k
Installing dependencies:
tigervnc-license noarch 1.10.1-2.fc31 updates 13 k
tigervnc-server-minimal x86_64 1.10.1-2.fc31 updates 1.1 M
Transaction Summary
==============================================================================================================================================================================================
Install 4 Packages
Total size: 1.6 M
Total download size: 1.1 M
Installed size: 4.9 M
Is this ok [y/N]:
According to Fedora Docs, DNF plugins all seem to contain dnf-plugins in their package names, so I used rpm -qa | grep "dnf-plugins" to find installed DNF plugins (not sure whether it is correct):
In that case, I honestly don’t know what’s happening here.
@vits95’s suggestion is all that remains. Can you copy this, paste it in your terminal to see if it works?
sudo dnf install xrdp
We’re asking you to do this because the last possibility is that due to some encoding issues, you typing xrdp in your terminal is not the same as us typing it here. I don’t understand how that would be yet—the commands we’ve given you all work on our machines.
In general, dnf is unable to find a package for a few reasons:
the package name is wrong (it may look the same, but if the encoding is different, it isn’t)
the package is excluded in the dnf configuration
the package is not available in the mirror that dnf is looking at
the package is not available in the repositories dnf has access too.
We’ve discounted the last two. Your dnf configuration doesn’t seem to have any excludes there, so that’s the third one also gone. Only the first remains. I still do not understand how installing from locally downloaded rpms didn’t work though.
How about you just try dnfdragora? That’s a GUI, so no typing needed there?
I tried to copy & paste the command into the terminal and it does not work.
I also installed and used dnfdragora but it displays No entries. when I search for xrdp.
I have done a clean install of Fedora on the virtual machine (it is installed only a few days ago so it is easy to re-install) and everything works well.
@FranciscoD Many thanks to you anyway. I’d really appreciate it that you can take your precious time to help out. The Fedora community is really helpful.
No worries. This one has really been a mystery. I honestly still don’t know what was happening here, and not being able to reproduce the issue just makes it harder to debug