无法安装 xrdp

无法安装 xrdp

我无法安装 xrdp。在 ubuntu 22.04 最新版本上,它显示“无安装候选项”错误。请帮助我。

Satish 的 [sudo] 密码:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package vnc4server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'vnc4server' has no installation candidate
Satish@vmi1502872:~$ vi /etc/apt/sources.list

答案1

不确定您如何执行安装,但通常 xRDP 不再使用 vnc4server 包。xRDP 软件附带 2 个包 xrdp 和 xorgxrdp 包。

安装 xrdp 最简单、最简单的方法就是运行

sudo apt-get install xrdp 

显然,您的系统也应该是最新的。如果您运行此命令,它不应该要求 vnc4server 包,但它应该告诉您有关 xorgxrdp 包的信息。

如果这仍然不起作用,您可以尝试从源代码编译。为此,您可以使用我们编写的脚本,该脚本可以简化在 Ubuntu 系统上安装 xrdp 包的过程。

我们假设您有一个正在运行的桌面界面(Gnome Desktop)。要使用和获取我们的脚本,请使用以下命令

#Go to your Downloads Folders (as normal user/ no root account)
cd ~/Downloads

#Download the script
wget https://www.c-nergy.be/downloads/xRDP/xrdp-installer-1.4.8.zip

#unzip the package
unzip xrdp-installer-1.4.8.zip

#make it executable
chmod +x xrdp-installer-1.4.8.sh

#execute the script 
./xrdp-installer-1.4.8.sh -c

不能保证脚本一定能成功运行,也不能保证它一定能解决你的问题,但你随时可以尝试一下

有关如何使用和下载脚本的完整说明,请参阅我们的博客: xRDP – 在 Ubuntu 20.04、22.04、23.XX 上轻松安装 xRDP(脚本版本 1.4.8)

希望这能有所帮助,下次见

相关内容