我想在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 靠谱多了
首先要说一下,该部分内容对于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