V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
black11black
V2EX  ›  问与答

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

  •  
  •   black11black · 2020-01-12 14:25:29 +08:00 · 1875 次点击
    这是一个创建于 1752 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    网上查了一下通用驱动似乎 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 还是我的某些设置有问题?

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

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

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

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

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

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

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

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

    但 http 远程打印全部无效,很神秘
    JackieMe
        9
    JackieMe  
       2020-01-12 22:07:10 +08:00
    @black11black 你应该是 update 一半你取消了,然后 apt 本地缓存的源信息和你实际用的源有的包版本不一致,你这时候 apt install 就会出现 apt 明明在本地缓存里找到某个包某个版本,但是去去下载的时候(实际使用的源的网址)找不到这个包了,就报错了。一般不混用源和第三方不靠谱的源很少出现版本冲突的。
    black11black
        10
    black11black  
    OP
       2020-01-13 05:40:34 +08:00
    @JackieMe
    感谢,基本上是这个问题了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5683 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 01:32 · PVG 09:32 · LAX 18:32 · JFK 21:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.