当前位置: 首页 > 知识库问答 >
问题:

linux - Windows远程连接Ubutun22.04系统的图形化界面?

方昊英
2024-07-12

我想在Windows上远程连接服务器上的Ubutun22.04系统的图形界面。我所用的方法是通过设定VNC进行连接,首先我需要在服务器上安装两个软件分别是vncserver和xfce4,用到的命令是sudo apt install tigervnc-standalone-serversudo apt install xfce4 xfce4-goodies,当我安装xfce4软件时,终端显示:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 evince : Depends: evince-common (>= 42.3-0ubuntu3.1) but 3.28.4-0ubuntu1.2 is to be installed
          Depends: libevview3-3 (= 42.3-0ubuntu3.1) but 3.28.4-0ubuntu1.2 is to be installed
 gnome-initial-setup : Depends: libgnome-desktop-4-1 (>= 3.17.92) but it is not going to be installed
 gnome-software : Depends: gnome-software-common (= 41.5-2ubuntu2) but 3.28.1-0ubuntu4.18.04.15 is to be installed
                  Depends: libfwupd2 (>= 1.5.6) but 1.2.14-0~18.04.2 is to be installed
                  Depends: libmalcontent-0-0 (>= 0.6.0) but it is not going to be installed
                  Recommends: gnome-software-plugin-snap but it is not going to be installed
 libevdocument3-4 : Depends: libdjvulibre21 (>= 3.5.28) but 3.5.27.1-8ubuntu0.4 is to be installed
                    Depends: libkpathsea6 (>= 2021.20210626.59705) but 2017.20170613.44572-8ubuntu0.2 is to be installed
                    Depends: libsynctex2 (>= 2021.20210626.59705) but it is not going to be installed
 ubuntu-advantage-tools : Depends: python3-yaml but it is not going to be installed
                          Depends: libapt-pkg5.0 (>= 1.6.11) but it is not installable
                          Depends: libapt-inst2.0 (>= 1.6.11) but it is not installable
 ubuntu-release-upgrader-gtk : Depends: update-manager but it is not going to be installed
 xfce4 : Depends: libxfce4ui-utils (>= 4.16) but 4.13.4-1ubuntu1 is to be installed
         Depends: thunar (>= 4.16) but 1.6.15-0ubuntu1.18.04.1 is to be installed
         Depends: xfce4-appfinder (>= 4.16.0) but 4.12.0-2ubuntu2 is to be installed
         Depends: xfce4-panel (>= 4.16.0) but 4.12.2-1ubuntu1 is to be installed
         Depends: xfce4-session (>= 4.16.0) but 4.12.1-3ubuntu3 is to be installed
         Depends: xfce4-settings (>= 4.16.0) but 4.12.4-0ubuntu0.18.04.1 is to be installed
         Depends: xfconf (>= 4.16.0) but 4.12.1-1 is to be installed
         Depends: xfdesktop4 (>= 4.16.0) but 4.12.3-4ubuntu2 is to be installed
         Depends: xfwm4 (>= 4.16.0) but 4.12.5-1ubuntu0.18.04.1 is to be installed
         Recommends: thunar-volman (>= 4.16) but 0.8.1-2 is to be installed
         Recommends: xorg but it is not going to be installed
 xorgxrdp : Depends: xorg-input-abi-24
            Depends: xorg-video-abi-25
            Depends: xserver-xorg-core (>= 2:21.1.1)
            Recommends: xorg but it is not going to be installed
 xserver-xorg-video-ati : Depends: xorg-video-abi-25
                          Depends: xserver-xorg-core (>= 2:21.1.1)
 xserver-xorg-video-fbdev : Depends: xorg-video-abi-25
                            Depends: xserver-xorg-core (>= 2:21.1.1)
 xserver-xorg-video-intel : Depends: xorg-video-abi-25
                            Depends: xserver-xorg-core (>= 2:21.1.1)
 xserver-xorg-video-nouveau : Depends: xorg-video-abi-25
                              Depends: xserver-xorg-core (>= 2:21.1.1)
 xserver-xorg-video-qxl : Depends: xorg-video-abi-25
                          Depends: xserver-xorg-core (>= 2:21.1.1)
 xserver-xorg-video-radeon : Depends: xorg-video-abi-25
                             Depends: xserver-xorg-core (>= 2:21.1.1)
 xserver-xorg-video-vesa : Depends: xorg-video-abi-25
                           Depends: xserver-xorg-core (>= 2:21.1.1)
 xserver-xorg-video-vmware : Depends: xorg-video-abi-25
                             Depends: xserver-xorg-core (>= 2:21.1.1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

根据终端的提示,我继续执行了sudo apt --fix-broken install命令,结果终端继续报错:

ERROR:root:Couldn't import the YAML module.
Make sure the 'python3-yaml' package is installed correctly
and /usr/lib/python3/dist-packages is in yout PYTHONPATH.
dpkg: error processing package ubuntu-advantage-tools (--remove):
 installed ubuntu-advantage-tools package pre-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 ubuntu-advantage-tools
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

共有1个答案

充高扬
2024-07-12

你是 Ubuntu server 还是 Ubuntu desktop 如果是 Ubuntu desktop 你直接安装 远程桌面软件,比 vnc 靠谱多了
image.png

 类似资料:
  • 首先要说一下,该部分内容对于linux初学者来讲并不是特别重要的,可以先跳过该章节,先学下一章,等学完后再回来看这一章。 Linux 大多应用于服务器,而服务器不可能像 PC 一样放在办公室,它们是放在 IDC 机房的,所以我平时登录 linux 系统都是通过远程登录的。Linux 系统中是通过 ssh 服务实现的远程登录功能。默认 ssh 服务开启了 22 端口,而且当我们安装完系统时,这个服务

  • 我希望从VS2017调试一个Linux C++控制台应用程序,如以下教程所示: 使用Windows Subsystem For Linux在Visual Studio中编写和调试Linux C应用程序 从visual studio针对Linux的windows子系统 我已经在WSL Ubuntu 16.04安装中安装了gdbserver和openssh-server,正在运行,但是我无法从VS20

  • 我在这里做错了什么?查了很多论坛,都得不到妥善的解决方案。任何答复都将不胜感激。 谢谢

  • 所以Linux的新windows子系统(2019年windows 4月10日发布)已经发布,我的ubuntu子系统也升级了。我应该能够打开我的windows资源管理器中的Linux文件夹,但我没有得到正确的文件夹时,我运行该命令。

  • 而现在又出现了新的情况。我有一个使用nightmare.js(改进了但类似于phantom.js)的项目,它将在运行时安装电子无头浏览器。在WSL中运行将安装Ubuntu版本的Electrone,当尝试运行时不会发生任何事情,浏览器将不会打开。这是合乎逻辑的,因为WSL Ubuntu没有可视化环境,因此无法在其中打开浏览器。 如果我使用PowerShell或CMD运行(将使用安装在Windows上

  • Windows提供了一种远程桌面系统,可使用户远程登录进行系统管理或作为终端服务器运行各种应用软件。要连接Windows远程桌面,需在Windows客户端安装相应的软件(tsclient)。如果你是Windows服务器管理员肯定使用过该工具,因为远程桌面能大大方便系统管理员远程维护服务器。在Linux系统中,我们也可通过rdesktop工具连接Windows远程桌面。 debian:~# apt

  • 本文向大家介绍VMware安装Centos8系统的教程图解(中文图形化模式),包括了VMware安装Centos8系统的教程图解(中文图形化模式)的使用技巧和注意事项,需要的朋友参考一下 一、软件、系统镜像 软件:VMware 14 镜像:CentOS8 , 镜像官网下载地址 : http://mirror.jdcloud.com/centos/8.0.1905/isos/x86_64/CentO

  • 好的,我已经在网上读了很多帖子,没有一个是真正明确的,或者至少对我的技术水平的人来说。我在windows上设置了Ubuntu子系统,我正在尝试设置我的github密钥,这样我就不必每次推送都登录。 如果你有简单的步骤,请忽略下面的其余部分,只是想确保我提供了与我在下面尝试的内容相同的信息。 我尝试了这种方法,但仍然无法使其工作-在Windows上启动Git Bash时运行SSH代理 以下是我采取的