我想在Windows上远程连接服务器上的Ubutun22.04系统的图形界面。我所用的方法是通过设定VNC进行连接,首先我需要在服务器上安装两个软件分别是vncserver和xfce4,用到的命令是sudo apt install tigervnc-standalone-server
和sudo 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)
你是 Ubuntu server 还是 Ubuntu desktop 如果是 Ubuntu desktop 你直接安装 远程桌面软件,比 vnc 靠谱多了
