树莓派无法安装打印机驱动,这个错误提示是没有 arm 对应包的意思吗?

2020-01-12 14:25:29 +08:00
 black11black

如题,有没有装过的大佬看看

网上查了一下通用驱动似乎 apt install cpus 就行了

然后我 root 运行拿到下面这个提示:( raspbian 系统)

=======================================================

root@raspberrypi:~# apt-get install cups

Reading package lists... Done Building dependency tree
Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: cups : Depends: libcups2 (= 1.7.5-11+deb8u7) but 2.2.10-6+deb10u1 is to be installed Depends: libcupscgi1 (>= 1.4.2) but it is not going to be installed Depends: libcupsmime1 (>= 1.4.0) but it is not going to be installed Depends: libcupsppdc1 (>= 1.4.0) but it is not going to be installed Depends: cups-core-drivers (>= 1.7.5-11+deb8u7) but it is not going to be installed Depends: cups-daemon (>= 1.7.5-11+deb8u7) but it is not going to be installed Depends: ghostscript (>= 9.02~) but it is not going to be installed Depends: cups-client (>= 1.7.5-11+deb8u7) but it is not going to be installed Depends: cups-ppdc but it is not going to be installed Depends: cups-filters (>= 1.0.24-3~) but it is not going to be installed Recommends: colord but it is not going to be installed Recommends: cups-filters (>= 1.0.42) but it is not going to be installed or foomatic-filters (>= 4.0) Recommends: printer-driver-gutenprint but it is not going to be installed Recommends: cups-filters (>= 1.0.36) but it is not going to be installed or ghostscript-cups (>= 9.02~) E: Unable to correct problems, you have held broken packages.

=======================================================

以前 x86 的 apt install 从来没出过这种问题,看不太懂

所以是没有适配版本的 cpus 还是我的某些设置有问题?

我看网上教学都是直接就装了,咋回事,很懵

1821 次点击
所在节点    问与答
10 条回复
black11black
2020-01-12 14:26:13 +08:00
树莓派型号 4B
chunchu
2020-01-12 14:39:03 +08:00
试试
sudo apt-get update
sudo apt-get install cpus
mikeguan
2020-01-12 15:09:21 +08:00
看着像是不同版本软件源乱了
如果软件源乱了建议还是先看基础吧
ashong
2020-01-12 15:15:59 +08:00
似乎就是 arm 不支持, 我以前也遇到过打印机装不上,后来自己编译安装驱动后 色彩不对, 后来 x86 安装就没问题了
black11black
2020-01-12 16:00:34 +08:00
@mikeguan

感谢,debug 了一下,似乎发生原因是因为使用原版源 apt upgrade,然后中途嫌太慢 ctrl+c 了,后面换成科大镜像导致的问题。

哪里的基础会讲软件源替换和冲突的原理。。不懂啊
black11black
2020-01-12 16:23:35 +08:00
@black11black

更新,似乎不是替换和冲突政策的问题

是我用的科大源本身有些问题。。换清华源以后解决了
swsh007
2020-01-12 18:16:47 +08:00
@ashong 是有这种事,比如 brother 有官方驱动但只是 x86。
black11black
2020-01-12 19:16:31 +08:00
@swsh007

更新,换源可以解决安装问题,但 arm 下有些奇怪的 bug

我的机器设置好以后只能在 cups 的 web 控制面板里打印测试页面(正常)

但 http 远程打印全部无效,很神秘
JackieMe
2020-01-12 22:07:10 +08:00
@black11black 你应该是 update 一半你取消了,然后 apt 本地缓存的源信息和你实际用的源有的包版本不一致,你这时候 apt install 就会出现 apt 明明在本地缓存里找到某个包某个版本,但是去去下载的时候(实际使用的源的网址)找不到这个包了,就报错了。一般不混用源和第三方不靠谱的源很少出现版本冲突的。
black11black
2020-01-13 05:40:34 +08:00
@JackieMe
感谢,基本上是这个问题了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/637251

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX