未满足的依赖关系和子进程 /usr/bin/dpkg 在 DEBIAN 中返回错误代码(1) 错误

未满足的依赖关系和子进程 /usr/bin/dpkg 在 DEBIAN 中返回错误代码(1) 错误

我正在尝试在 VM 中的 Debian 上安装桌面环境

侏儒:

  apt-get install gnome-desktop-environment

抛出错误:

 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:
 gnome-desktop-environment : Depends: gnome(>=1:3.4+7+deb7u1) but it is not going to be installed 
 liblouis2 : Depends: liblouis-data but it is not going to be installed 
 python-pyatspi2 : Depends: python-pyatspi(=2.5.3+dfsg-3) but it is not going to be installed 
 tracker-gui: Depends: tracker(=0.14.1-3) but it is not going to be installed 
 E:Unmet dependencies. Try apt-get install with no packages(or specify a solution).

然后尝试了这段代码

apt-get -f install 

处理时遇到错误

   /var/cache/apt/archives/tracker_0.14.1-3_amd64.deb
   /var/cache/apt/archives/liblouis-data_2.4.1-1_all.deb
   /var/cache/apt/archives/libatk-adapter_2.5.3-2_amd64.deb
   /var/cache/apt/archives/libgail-common_2.24.10-2_amd64.deb
   /var/cache/apt/archives/python-pyatspi_2.5.3+dfsg-3_all.deb
 E: sub-process /usr/bin/dpkg returned an error code(1) 

我也尝试过下面的代码但失败了

     # apt-get install aptitude tasksel
     # tasksel install gnome-desktop --new-install

答案1

使用以下命令增加设备上的空间

# lvextend -L10G /dev/mapper/vg0-usr
# resize2fs /dev/mapper/vg0-usr

之后我执行

# apt-get install aptitude tasksel
# tasksel install gnome-desktop --new-install

成功执行

相关内容