chroot到系统中时无法在Debian中安装桌面环境

时间:2019-12-24 11:03:49

标签: linux debian live gnome xfce

我正在尝试创建自定义Live Debian iso,但是当我安装任何桌面环境时,它将出现这些错误。我一直在关注本教程https://willhaley.com/blog/custom-debian-live-environment/,但是在chroot系统中,我似乎无法在其上安装任何桌面环境。如果没有桌面环境,它将可以正常启动,但当然只有外壳程序才能启动,因为没有桌面环境。在桌面环境下,它将引导grub但无法加载实时图像,我认为下面显示的错误是原因。在这方面的任何帮助将不胜感激。

    Processing triggers for initramfs-tools (0.133+deb10u1) ...
update-initramfs: Generating /boot/initrd.img-4.19.0-6-amd64
live-boot: core filesystems devices utils udev blockdev dns.
Processing triggers for hicolor-icon-theme (0.17-2) ...
Setting up gnome-keyring (3.28.2-5) ...
Setting up xfce4-goodies (4.12.6) ...
Setting up task-xfce-desktop (3.53) ...
Processing triggers for dictionaries-common (1.28.1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
aspell-autobuildhash: processing: en [en-common].
aspell-autobuildhash: processing: en [en-variant_0].
aspell-autobuildhash: processing: en [en-variant_1].
aspell-autobuildhash: processing: en [en-variant_2].
aspell-autobuildhash: processing: en [en-w_accents-only].
aspell-autobuildhash: processing: en [en-wo_accents-only].
aspell-autobuildhash: processing: en [en_AU-variant_0].
aspell-autobuildhash: processing: en [en_AU-variant_1].
aspell-autobuildhash: processing: en [en_AU-w_accents-only].
aspell-autobuildhash: processing: en [en_AU-wo_accents-only].
aspell-autobuildhash: processing: en [en_CA-variant_0].
aspell-autobuildhash: processing: en [en_CA-variant_1].
aspell-autobuildhash: processing: en [en_CA-w_accents-only].
aspell-autobuildhash: processing: en [en_CA-wo_accents-only].
aspell-autobuildhash: processing: en [en_GB-ise-w_accents-only].
aspell-autobuildhash: processing: en [en_GB-ise-wo_accents-only].
aspell-autobuildhash: processing: en [en_GB-ize-w_accents-only].
aspell-autobuildhash: processing: en [en_GB-ize-wo_accents-only].
aspell-autobuildhash: processing: en [en_GB-variant_0].
aspell-autobuildhash: processing: en [en_GB-variant_1].
aspell-autobuildhash: processing: en [en_US-w_accents-only].
aspell-autobuildhash: processing: en [en_US-wo_accents-only].
Errors were encountered while processing:
 udisks2
 gvfs-daemons
 gvfs:amd64
 openjdk-11-jre-headless:amd64
 openjdk-11-jre:amd64
 default-jre
 ca-certificates-java
 libreoffice-script-provider-bsh
 libreoffice-script-provider-js
 libreoffice-sdbc-hsqldb
 libreoffice-wiki-publisher
 libreoffice-nlpsolver
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@x:/# sudo dpkg --configure -a
Setting up udisks2 (2.8.1-4) ...
Failed to scan devices: No such file or directory
dpkg: error processing package udisks2 (--configure):
 installed udisks2 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of gvfs-daemons:
 gvfs-daemons depends on udisks2; however:
  Package udisks2 is not configured yet.

dpkg: error processing package gvfs-daemons (--configure):
 dependency problems - leaving unconfigured
Setting up ca-certificates-java (20190405) ...
head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory
the keytool command requires a mounted proc fs (/proc).
dpkg: error processing package ca-certificates-java (--configure):
 installed ca-certificates-java package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of gvfs:amd64:
 gvfs:amd64 depends on gvfs-daemons (<< 1.38.1-5.1~); however:
  Package gvfs-daemons is not configured yet.
 gvfs:amd64 depends on gvfs-daemons (>= 1.38.1-5); however:
  Package gvfs-daemons is not configured yet.

dpkg: error processing package gvfs:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-11-jre-headless:amd64:
 openjdk-11-jre-headless:amd64 depends on ca-certificates-java (>= 20190405~); however:
  Package ca-certificates-java is not configured yet.

dpkg: error processing package openjdk-11-jre-headless:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-11-jre:amd64:
 openjdk-11-jre:amd64 depends on openjdk-11-jre-headless (= 11.0.4+11-1~deb10u1); however:
  Package openjdk-11-jre-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-11-jre:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jre:
 default-jre depends on openjdk-11-jre; however:
  Package openjdk-11-jre:amd64 is not configured yet.

dpkg: error processing package default-jre (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-script-provider-bsh:
 libreoffice-script-provider-bsh depends on default-jre | sun-java6-jre | java6-runtime | jre; however:
  Package default-jre is not configured yet.
  Package sun-java6-jre is not installed.
  Package java6-runtime is not installed.
  Package openjdk-11-jre:amd64 which provides java6-runtime is not configured yet.
  Package default-jre which provides java6-runtime is not configured yet.
  Package jre is not installed.

dpkg: error processing package libreoffice-script-provider-bsh (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-script-provider-js:
 libreoffice-script-provider-js depends on default-jre | sun-java6-jre | java6-runtime | jre; however:
  Package default-jre is not configured yet.
  Package sun-java6-jre is not installed.
  Package java6-runtime is not installed.
  Package openjdk-11-jre:amd64 which provides java6-runtime is not configured yet.
  Package default-jre which provides java6-runtime is not configured yet.
  Package jre is not installed.

dpkg: error processing package libreoffice-script-provider-js (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-sdbc-hsqldb:
 libreoffice-sdbc-hsqldb depends on default-jre | sun-java6-jre | java6-runtime | jre; however:
  Package default-jre is not configured yet.
  Package sun-java6-jre is not installed.
  Package java6-runtime is not installed.
  Package openjdk-11-jre:amd64 which provides java6-runtime is not configured yet.
  Package default-jre which provides java6-runtime is not configured yet.
  Package jre is not installed.

dpkg: error processing package libreoffice-sdbc-hsqldb (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-wiki-publisher:
 libreoffice-wiki-publisher depends on default-jre | sun-java6-jre | java6-runtime | jre; however:
  Package default-jre is not configured yet.
  Package sun-java6-jre is not installed.
  Package java6-runtime is not installed.
  Package openjdk-11-jre:amd64 which provides java6-runtime is not configured yet.
  Package default-jre which provides java6-runtime is not configured yet.
  Package jre is not installed.

dpkg: error processing package libreoffice-wiki-publisher (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-nlpsolver:
 libreoffice-nlpsolver depends on default-jre | sun-java6-jre | java6-runtime | jre; however:
  Package default-jre is not configured yet.
  Package sun-java6-jre is not installed.
  Package java6-runtime is not installed.
  Package openjdk-11-jre:amd64 which provides java6-runtime is not configured yet.
  Package default-jre which provides java6-runtime is not configured yet.
  Package jre is not installed.

dpkg: error processing package libreoffice-nlpsolver (--configure):
 dependency problems - leaving unconfigured
Processing triggers for ca-certificates (20190110) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

the keytool command requires a mounted proc fs (/proc).
E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
done.
Errors were encountered while processing:
 udisks2
 gvfs-daemons
 ca-certificates-java
 gvfs:amd64
 openjdk-11-jre-headless:amd64
 openjdk-11-jre:amd64
 default-jre
 libreoffice-script-provider-bsh
 libreoffice-script-provider-js
 libreoffice-sdbc-hsqldb
 libreoffice-wiki-publisher
 libreoffice-nlpsolver
root@x:/# apt-get install -f task-xfce-desktop console-setup
Reading package lists... Done
Building dependency tree       
Reading state information... Done
console-setup is already the newest version (1.193~deb10u1).
task-xfce-desktop is already the newest version (3.53).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
12 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_GB:en",
    LC_ALL = (unset),
    LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)
Setting up udisks2 (2.8.1-4) ...
Failed to scan devices: No such file or directory
dpkg: error processing package udisks2 (--configure):
 installed udisks2 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of gvfs-daemons:
 gvfs-daemons depends on udisks2; however:
  Package udisks2 is not configured yet.

dpkg: error processing package gvfs-daemons (--configure):
 dependency problems - leaving unconfigured
Setting up ca-certificates-java (20190405) ...
head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory
the keytool command requires a mounted proc fs (/proc).
dpkg: error processing package ca-certificates-java (--configure):
 installed ca-certificates-java package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of gvfs:amd64:
 gvfs:amd64 depends on gvfs-daemons (<< 1.38.1-5.1~); however:
  Package gvfs-daemons is not configured yet.
 gvfs:amd64 depends on gvfs-daemons (>= 1.38.1-5); however:
  Package gvfs-daemons is not configured yet.

dpkg: error processing package gvfs:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-11-jre-headless:amd64:
 openjdk-11-jre-headless:amd64 depends on ca-certificates-java (>= 20190405~); however:
  Package ca-certificates-java is not configured yet.

dpkg: error processing package openjdk-11-jre-headless:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-11-jre:amd64:
 openjdk-11-jre:amd64 depends on openjdk-11-jre-headless (= 11.0.4+11-1~deb10u1); however:
  Package openjdk-11-jre-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-11-jre:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jre:
 default-jre depends on openjdk-11-jre; however:
  Package openjdk-11-jre:amd64 is not configured yet.

dpkg: error processing package default-jre (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-script-provider-bsh:
 libreoffice-script-provider-bsh depends on default-jre | sun-java6-jre | java6-runtime | jre; however:
  Package default-jre is not configured yet.
  Package sun-java6-jre is not installed.
  Package java6-runtime is not installed.
  Package openjdk-11-jre:amd64 which provides java6-runtime is not configured yet.
  Package default-jre which provides java6-runtime is not configured yet.
  Package jre is not installed.

dpkg: error processing package libreoffice-script-provider-bsh (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-script-provider-js:
 libreoffice-script-provider-js depends on default-jre | sun-java6-jre | java6-runtime | jre; however:
  Package default-jre is not configured yet.
  Package sun-java6-jre is not installed.
  Package java6-runtime is not installed.
  Package openjdk-11-jre:amd64 which provides java6-runtime is not configured yet.
  Package default-jre which provides java6-runtime is not configured yet.
  Package jre is not installed.

dpkg: error processing package libreoffice-script-provider-js (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-sdbc-hsqldb:
 libreoffice-sdbc-hsqldb depends on default-jre | sun-java6-jre | java6-runtime | jre; however:
  Package default-jre is not configured yet.
  Package sun-java6-jre is not installed.
  Package java6-runtime is not installed.
  Package openjdk-11-jre:amd64 which provides java6-runtime is not configured yet.
  Package default-jre which provides java6-runtime is not configured yet.
  Package jre is not installed.

dpkg: error processing package libreoffice-sdbc-hsqldb (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-wiki-publisher:
 libreoffice-wiki-publisher depends on default-jre | sun-java6-jre | java6-runtime | jre; however:
  Package default-jre is not configured yet.
  Package sun-java6-jre is not installed.
  Package java6-runtime is not installed.
  Package openjdk-11-jre:amd64 which provides java6-runtime is not configured yet.
  Package default-jre which provides java6-runtime is not configured yet.
  Package jre is not installed.

dpkg: error processing package libreoffice-wiki-publisher (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-nlpsolver:
 libreoffice-nlpsolver depends on default-jre | sun-java6-jre | java6-runtime | jre; however:
  Package default-jre is not configured yet.
  Package sun-java6-jre is not installed.
  Package java6-runtime is not installed.
  Package openjdk-11-jre:amd64 which provides java6-runtime is not configured yet.
  Package default-jre which provides java6-runtime is not configured yet.
  Package jre is not installed.

dpkg: error processing package libreoffice-nlpsolver (--configure):
 dependency problems - leaving unconfigured
Processing triggers for ca-certificates (20190110) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

the keytool command requires a mounted proc fs (/proc).
E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
done.
Errors were encountered while processing:
 udisks2
 gvfs-daemons
 ca-certificates-java
 gvfs:amd64
 openjdk-11-jre-headless:amd64
 openjdk-11-jre:amd64
 default-jre
 libreoffice-script-provider-bsh
 libreoffice-script-provider-js
 libreoffice-sdbc-hsqldb
 libreoffice-wiki-publisher
 libreoffice-nlpsolver
E: Sub-process /usr/bin/dpkg returned an error code (1)

0 个答案:

没有答案