apt-get install bluez and bluetooth for debian noninteractively
Apt-get install bluez and bluetooth for debian noninteractively
我正在尝试构建一个 debian 映像并安装某些应用程序,所有这些都是非交互式的。几乎一切正常,但唉,几乎...
我 chroot
进入我的工作目录并尝试安装 bluez
和 bluetooth
:
apt-get install -y bluez
apt-get install -y bluetooth
但是,安装后出现以下错误bluez
Failed to read /proc/cmdline. Ignoring: No such file or directory
[....] Reloading system message bus config...Failed to open connection to "system" message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
invoke-rc.d: initscript dbus, action "force-reload" failed.
Failed to read /proc/cmdline. Ignoring: No such file or directory
[....] Starting bluetooth:/sbin/start-stop-daemon: nothing in /proc - not mounted?
invoke-rc.d: initscript bluetooth, action "start" failed.
dpkg: error processing package bluez (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of bluetooth:
bluetooth depends on bluez; however:
Package bluez is not configured yet.
然后bluetooth
returns一个错误说bluez
是一个没有被配置的依赖。
感谢帮助
/proc/cmdline
在您的 chroot 环境中不可见,这导致 bluez 包配置失败。
您可能缺少 /etc/fstab
中的 proc 装载:
/proc /srv/chroot/wheezy/proc auto bind 0 0
查看 here
上的伪文件系统部分
我认为在编译 bluez 之前应该配置它,希望下面的命令有效
sudo ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --disable-systemd --enable-实验性的 --enable-maintainer-mode
我正在尝试构建一个 debian 映像并安装某些应用程序,所有这些都是非交互式的。几乎一切正常,但唉,几乎...
我 chroot
进入我的工作目录并尝试安装 bluez
和 bluetooth
:
apt-get install -y bluez
apt-get install -y bluetooth
但是,安装后出现以下错误bluez
Failed to read /proc/cmdline. Ignoring: No such file or directory
[....] Reloading system message bus config...Failed to open connection to "system" message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
invoke-rc.d: initscript dbus, action "force-reload" failed.
Failed to read /proc/cmdline. Ignoring: No such file or directory
[....] Starting bluetooth:/sbin/start-stop-daemon: nothing in /proc - not mounted?
invoke-rc.d: initscript bluetooth, action "start" failed.
dpkg: error processing package bluez (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of bluetooth:
bluetooth depends on bluez; however:
Package bluez is not configured yet.
然后bluetooth
returns一个错误说bluez
是一个没有被配置的依赖。
感谢帮助
/proc/cmdline
在您的 chroot 环境中不可见,这导致 bluez 包配置失败。
您可能缺少 /etc/fstab
中的 proc 装载:
/proc /srv/chroot/wheezy/proc auto bind 0 0
查看 here
上的伪文件系统部分我认为在编译 bluez 之前应该配置它,希望下面的命令有效
sudo ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --disable-systemd --enable-实验性的 --enable-maintainer-mode