我刚刚尝试在自己的 Ubuntu 服务器上安装 XRDP,结果出现以下情况。之前没有见过这种情况,不知道该怎么办。
knoppysdev@knoppysdigitalserver:~$ sudo apt install xrdp
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
linux-image-generic : Depends: linux-image-4.4.0-154-generic but it is not going to be installed or
linux-image-unsigned-4.4.0-154-generic but it is not going to be installed
Recommends: thermald but it is not going to be installed
linux-modules-extra-4.4.0-151-generic : Depends: linux-image-4.4.0-151-generic but it is not going to be installed or
linux-image-unsigned-4.4.0-151-generic but it is not going to be installed
linux-modules-extra-4.4.0-154-generic : Depends: linux-image-4.4.0-154-generic but it is not going to be installed or
linux-image-unsigned-4.4.0-154-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
我sudo apt-get -f install
得到了以下信息:
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
linux-image-4.4.0-154-generic
Suggested packages:
fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
The following NEW packages will be installed
linux-image-4.4.0-154-generic
0 to upgrade, 1 to newly install, 0 to remove and 173 not to upgrade.
16 not fully installed or removed.
Need to get 0 B/6,928 kB of archives.
After this operation, 7,227 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 611731 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.0-154-generic_4.4.0-154.181_amd64.deb ...
Unpacking linux-image-4.4.0-154-generic (4.4.0-154.181) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-154-generic_4.4.0-154.181_amd64.deb (--unpack):
cannot copy extracted data for './boot/vmlinuz-4.4.0-154-generic' to '/boot/vmlinuz-4.4.0-154-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-4.4.0-154-generic_4.4.0-154.181_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
答案2
所以是的,启动时已满。服务器上剩余大量空间(2 TB)。所以我查找了以下内容,这对我之前设置桌面很有帮助。 https://gist.github.com/ipbastola/2760cfc28be62a5ee10036851c654600
感谢大家的帮助。