Package 'xrdp' seems to be missing

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 xrdp here, 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)?

Thanks in advance!

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:

sudo dnf repolist
2 Likes

Hi @FranciscoD, thank you for your comment.

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:

$ dnf repolist
仓库标识 (Repository identifier)  仓库名称 (Repository name)
fedora                            Fedora 31 - x86_64
fedora-cisco-openh264             Fedora 31 openh264 (From Cisco) - x86_64
fedora-modular                    Fedora Modular 31 - x86_64
phracek-PyCharm                   Copr repo for PyCharm owned by phracek
rpmfusion-nonfree-nvidia-driver   RPM Fusion for Fedora 31 - Nonfree - NVIDIA Driver
rpmfusion-nonfree-steam           RPM Fusion for Fedora 31 - Nonfree - Steam
updates                           Fedora 31 - x86_64 - Updates
updates-modular                   Fedora Modular 31 - x86_64 - Updates

Note: Repository identifier and Repository name in parentheses are my translations from simplified Chinese and may be inaccurate.

1 Like

That’s very odd. Could be a bad mirror—I’m not sure. Is the updates repository enabled?

$ sudo dnf repoinfo updates
Last metadata expiration check: 1:11:55 ago on Wed 19 Feb 2020 12:14:32 GMT.

Repo-id            : updates
Repo-name          : Fedora 31 - x86_64 - Updates
Repo-status        : enabled
Repo-revision      : 1582072346
Repo-updated       : Wed 19 Feb 2020 01:07:00 GMT
Repo-pkgs          : 17,355
Repo-available-pkgs: 17,337
Repo-size          : 27 G
Repo-metalink      : https://mirrors.fedoraproject.org/metalink?repo=updates-released-f31&arch=x86_64
  Updated          : Wed 19 Feb 2020 09:12:21 GMT
Repo-baseurl       : rsync://mirror.bytemark.co.uk/fedora/linux/updates/31/Everything/x86_64/ (103 more)
Repo-expire        : 21,600 second(s) (last: Wed 19 Feb 2020 09:12:21 GMT)
Repo-filename      : /etc/yum.repos.d/fedora-updates.repo
Total packages: 17,355

You can fetch the package directly from the build system here in the meantime.:

xrdp-0.9.12-4.fc31 | Build Info | koji

Download the xrdp and xrdp-selinux rpms and go sudo dnf install <path to rpms>.

2 Likes

You don’t need to translate your terminal output, just use this tips for translating:

https://discussion.fedoraproject.org/t/how-to-make-my-terminal-speak-english/75251

Regards.,

4 Likes

@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

Also thanks to @hhlp for your tips!

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?

/etc/yum.repos.d/fedora.repo
/etc/yum.repos.d/fedora-updates.repo

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):

fedora.repo:

[fedora]
name=Fedora $releasever - $basearch
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/tree/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

[fedora-source]
name=Fedora $releasever - Source
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/tree/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

fedora-updates.repo:

[updates]
name=Fedora $releasever - $basearch - Updates
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/Everything/$basearch/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
enabled=1
repo_gpgcheck=0
type=rpm
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/Everything/$basearch/debug/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f$releasever&arch=$basearch
enabled=0
repo_gpgcheck=0
type=rpm
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

[updates-source]
name=Fedora $releasever - Updates Source
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/Everything/SRPMS/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
repo_gpgcheck=0
type=rpm
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

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]:

The mirror you mentioned also includes xrdp: https://mirrors.tuna.tsinghua.edu.cn/fedora/updates/31/Everything/x86_64/Packages/x/

So that’s fine there. Can we have a look at what dnf packages you have installed please?

rpm -qa \*dnf\*

Can we also have a look at your dnf configuration:

/etc/dnf.conf

Have you excluded any packages? What dnf plugins are you using? Are you able to install other packages correctly?

Try to copy with a mouse the commands from the posts there, and paste it to your terminal.

Once i was unable to compile a “hello world”, and all the letters was seem correct.

This is the output for rpm -qa \*dnf\*:

$ rpm -qa \*dnf\*
libdnf-0.43.1-2.fc31.x86_64
python3-dnf-plugins-core-4.0.13-1.fc31.noarch
dnf-data-4.2.18-1.fc31.noarch
python3-dnf-4.2.18-1.fc31.noarch
dnf-plugins-core-4.0.13-1.fc31.noarch
python3-libdnf-0.43.1-2.fc31.x86_64
dnf-4.2.18-1.fc31.noarch

On my machine the file /etc/dnf.conf does not exist, but I have found the configuration file at /etc/dnf/dnf.conf:

$ cat /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True

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):

$ rpm -qa | grep "dnf-plugins"
python3-dnf-plugins-core-4.0.13-1.fc31.noarch
dnf-plugins-core-4.0.13-1.fc31.noarch

I’m able to install many other packages with DNF. For example, I can successfully install cmake with DNF:

$ LANG=C sudo dnf install cmake
Last metadata expiration check: 0:09:53 ago on Thu Feb 20 09:16:09 2020.
Dependencies resolved.
================================================================================
 Package                Architecture Version                Repository     Size
================================================================================
Installing:
 cmake                  x86_64       3.16.3-1.fc31          updates       5.7 M
Installing dependencies:
 cmake-data             noarch       3.16.3-1.fc31          updates       1.4 M
 cmake-filesystem       x86_64       3.16.3-1.fc31          updates        14 k
 cmake-rpm-macros       noarch       3.16.3-1.fc31          updates        13 k
 jsoncpp                x86_64       1.9.1-1.fc31           fedora         96 k
 libuv                  x86_64       1:1.34.2-1.fc31        updates       147 k
 rhash                  x86_64       1.3.8-2.fc31           fedora        179 k

Transaction Summary
================================================================================
Install  7 Packages

Total download size: 7.5 M
Installed size: 32 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): cmake-filesystem-3.16.3-1.fc31.x86_64.rp  82 kB/s |  14 kB     00:00    
(2/7): cmake-rpm-macros-3.16.3-1.fc31.noarch.rp 229 kB/s |  13 kB     00:00    
(3/7): libuv-1.34.2-1.fc31.x86_64.rpm           751 kB/s | 147 kB     00:00    
(4/7): jsoncpp-1.9.1-1.fc31.x86_64.rpm          502 kB/s |  96 kB     00:00    
(5/7): rhash-1.3.8-2.fc31.x86_64.rpm            769 kB/s | 179 kB     00:00    
(6/7): cmake-data-3.16.3-1.fc31.noarch.rpm      1.1 MB/s | 1.4 MB     00:01    
(7/7): cmake-3.16.3-1.fc31.x86_64.rpm           2.3 MB/s | 5.7 MB     00:02    
--------------------------------------------------------------------------------
Total                                           2.0 MB/s | 7.5 MB     00:03     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : cmake-rpm-macros-3.16.3-1.fc31.noarch                  1/7 
  Installing       : cmake-filesystem-3.16.3-1.fc31.x86_64                  2/7 
  Installing       : rhash-1.3.8-2.fc31.x86_64                              3/7 
  Installing       : jsoncpp-1.9.1-1.fc31.x86_64                            4/7 
  Installing       : libuv-1:1.34.2-1.fc31.x86_64                           5/7 
  Installing       : cmake-data-3.16.3-1.fc31.noarch                        6/7 
  Installing       : cmake-3.16.3-1.fc31.x86_64                             7/7 
  Running scriptlet: cmake-3.16.3-1.fc31.x86_64                             7/7 
  Verifying        : cmake-3.16.3-1.fc31.x86_64                             1/7 
  Verifying        : cmake-data-3.16.3-1.fc31.noarch                        2/7 
  Verifying        : cmake-filesystem-3.16.3-1.fc31.x86_64                  3/7 
  Verifying        : cmake-rpm-macros-3.16.3-1.fc31.noarch                  4/7 
  Verifying        : libuv-1:1.34.2-1.fc31.x86_64                           5/7 
  Verifying        : jsoncpp-1.9.1-1.fc31.x86_64                            6/7 
  Verifying        : rhash-1.3.8-2.fc31.x86_64                              7/7 

Installed:
  cmake-3.16.3-1.fc31.x86_64             cmake-data-3.16.3-1.fc31.noarch       
  cmake-filesystem-3.16.3-1.fc31.x86_64  cmake-rpm-macros-3.16.3-1.fc31.noarch 
  jsoncpp-1.9.1-1.fc31.x86_64            libuv-1:1.34.2-1.fc31.x86_64          
  rhash-1.3.8-2.fc31.x86_64             

Complete!

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.

Ah, so it works now after a clean-install?

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 :frowning:

2 Likes