在 Debian 上安装打印机服务器的一些软件包时出现问题。
我使用了以下命令:
apt-get install task-print-server
apt-get install cups
我收到以下错误:
Do you want to continue? [Y / n] j
Setting up ssl-cert (1.0.35) ...
Groupadd: Error writing changes to / etc / group
Addgroup: / usr / sbin / groupadd -g 122 ssl-cert returned error code 10. > Programs.
Dpkg: Error processing package ssl-cert (--configure):
Subprocess installed post-installation script returned the error value of 1
Dpkg: Dependency problems prevent configuration of cups daemon:
Cups-daemon depends on ssl-cert (> = 1.0.11); but:
Package ssl-cert is not configured yet.
Dpkg: Error processing the package cups-daemon (--configure):
Dependency problems - remains unconfigured
Dpkg: dependency problems prevent configuration of cups-core-drivers:
Cups-core-drivers depends on cups-daemon (> = 1.7.5-11 + deb8u1); but:
Package cups-daemon is not yet configured.
Dpkg: Error processing package cups-core-drivers (--configure):
Dependency problems - remains unconfigured
Set up cups-client (1.7.5-11 + deb8u1) ...
Group "lpadmin" (GID 122) ...
Groupadd: Error writing changes to / etc / group
Addgroup: / usr / sbin / groupadd -g 122 lpadmin returned error code 10. > > Programs.
Dpkg: Error processing package cups-client (--configure):
Subprocess installed post-installation script returned the error value of 1
Dpkg: dependency problems prevent configuration of cups:
Cups depends on cups-core-drivers (> = 1.7.5-11 + deb8u1); but:
Package cups-core-drivers is not configured yet.
Cups depends on cups-daemon (> = 1.7.5-11 + deb8u1); but:
Package cups-daemon is not yet configured.
Cups depends on cups-client (> = 1.7.5-11 + deb8u1); but:
Package cups-client is not configured yet.
Dpkg: Error processing the package cups (--configure):
Dependency problems - remains unconfigured
Dpkg: dependency problems prevent printer-driver-hpcups configuration:
Printer-driver-hpcups depends on cups (> = 1.4.0) Cupsddk; but:
Package cups is not configured yet.
Package cupsddk is not installed.
Printer-driver-hpcups depends on cups; but:
Package cups is not configured yet.
Dpkg: Error processing package printer-driver-hpcups (--configure):
Dependency problems - remains unconfigured
Dpkg: dependency problems prevent hplip configuration:
Hplip depends on printer-driver-hpcups (= 3.14.6-1 + deb8u1); but:
Package printer-driver-hpcups is not configured yet.
Hplip depends on cups (> = 1.1.20); but:
Package cups is not configured yet.
Dpkg: Error processing package hplip (--configure):
Dependency problems - remains unconfigured
Dpkg: dependency problems prevent printer-driver-postscript-hp
configuration:
Printer-driver-postscript-hp depends on hplip (> = 3.14.6-1 + deb8u1); but:
Package hplip is not configured yet.
Dpkg: Error processing package printer-driver-postscript-hp (--configure):
Dependency problems - remains unconfigured
Dpkg: dependency problems prevent printer-driver-goodprint configuration:
Printer-driver-goodprint depends on cups (> = 1.3.0); but:
Package cups is not configured yet.
Printer-driver-goodprint depends on cups-client (> = 1.3.0); but:
Package cups-client is not configured yet.
Dpkg: Failed to edit package-printer-driver-goodprint (--configure):
Dependency problems - remains unconfigured
Dpkg: dependency problems prevent printer-driver-splix configuration:
Printer-driver-splix depends on cups (> = 1.5.0-3 ~); but:
Package cups is not configured yet.
Printer-driver-splix depends on cups-client; but:
Package cups-client is not configured yet.
Dpkg: Failed to edit package-printer-driver-splix (--configure):
Dependency problems - remains unconfigured
Dpkg: dependency problems prevent configuration of cups-bsd:
Cups-bsd depends on cups-client (= 1.7.5-11 + deb8u1); but:
Package cups-client is not configured yet.
Dpkg: Error processing package cups-bsd (--configure):
Dependency problems - remains unconfigured
Dpkg: dependency problems prevent configuration of task-print-server:
Task-print-server depends on cups; but:
Package cups is not configured yet.
Task-print-server depends on cups-client; but:
Package cups-client is not configured yet.
Task-print-server depends on cups-bsd; but:
Package cups-bsd is not configured yet.
Dpkg: Failed to edit package task-print-server (--configure):
Dependency problems - remains unconfigured
Errors occurred while editing: ssl-cert
cups-daemon
cups-core-drivers
cups-client
cups
printer-driver-hpcups
hplip
printer-driver-postscript-hp
printer-driver-gutenprint
printer-driver-splix
cups-bsd
task-print-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
我不知道这是否导致无法自动找到打印机。至少我可以运行 cups 服务器并尝试添加新打印机,但它要求我输入打印机的 URL。我只需输入 ipp://,我也可以按照其他步骤安装正确的打印机驱动程序。但当我想打印时,系统说 URL 丢失或错误。
有没有什么办法可以找到这个网址?
统计输出:
root@debian:/# stat /etc/group
Datei: „/etc/group“
Size: 890 Blocks: 8 EA Block: 4096 regular file
Device: 801h / 2049d Inode: 263431 Shortcuts: 1
Access: (0644 / -rw -r - r--) Uid: (0 / root) Gid: (0 / root)
Access: 2017-04-30 17: 38: 18.204676461 +0200
Modified: 2016-09-23 14: 51: 00.519083038 +0200
Changed: 2016-09-23 14: 51: 00.519083038 +0200
Birth: -
Root @ debian: / # stat / etc / passwd
File: "/ etc / passwd"
Size: 2119 Blocks: 8 EA Block: 4096 regular file
Device: 801h / 2049d Inode: 263492 Shortcuts: 1
Access: (0644 / -rw -r - r--) Uid: (0 / root) Gid: (0 / root)
Access: 2017-05-01 01: 17: 01.237979036 +0200
Modified: 2017-04-03 00: 27: 01.880558770 +0200
Changed: 2017-04-03 00: 27: 01.880558770 +0200
Birth: -
lsattr 的输出:
root@debian:/# lsattr /etc/passwd
-------------e-- /etc/passwd
root@debian:/# lsattr /etc/group
-------------e-- /etc/group