You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04下如何降级cups-filters至1.26.2版本?

降级cups-filters到1.26.2解决Brother QL-700打印机问题(Ubuntu 22.04.1)

操作步骤

1. 获取1.26.2版本的deb包

Ubuntu 22.04官方源没有这个旧版本,你需要从Ubuntu 20.04(Focal)的软件仓库下载对应架构的cups-filters相关包,核心需要这几个:

  • cups-filters_1.26.2-0ubuntu3_amd64.deb
  • cups-filters-core-drivers_1.26.2-0ubuntu3_amd64.deb
  • libcupsfilters1_1.26.2-0ubuntu3_amd64.deb
  • libfontembed1_1.26.2-0ubuntu3_amd64.deb

2. 锁定版本防止自动更新

创建优先级配置文件,避免系统后续更新时自动升级cups-filters:

sudo tee /etc/apt/preferences.d/cups-filters-pin <<EOF
Package: cups-filters
Pin: version 1.26.2-0ubuntu3
Pin-Priority: 1001

Package: cups-filters-core-drivers
Pin: version 1.26.2-0ubuntu3
Pin-Priority: 1001

Package: libcupsfilters1
Pin: version 1.26.2-0ubuntu3
Pin-Priority: 1001

Package: libfontembed1
Pin: version 1.26.2-0ubuntu3
Pin-Priority: 1001
EOF

3. 替换当前版本

先停止CUPS服务避免操作冲突:

sudo systemctl stop cups

卸载当前安装的新版本:

sudo apt remove --purge cups-filters cups-filters-core-drivers libcupsfilters1 libfontembed1

切换到deb包下载目录,执行安装:

sudo dpkg -i cups-filters_1.26.2-0ubuntu3_amd64.deb cups-filters-core-drivers_1.26.2-0ubuntu3_amd64.deb libcupsfilters1_1.26.2-0ubuntu3_amd64.deb libfontembed1_1.26.2-0ubuntu3_amd64.deb

如果出现依赖报错,运行以下命令修复:

sudo apt install -f

4. 验证并测试

重启CUPS服务:

sudo systemctl start cups

检查安装版本:

apt list --installed cups-filters

确认版本为1.26.2后,测试Brother QL-700打印机是否正常工作。

注意事项

  • 确保下载的deb包架构与你的系统匹配(比如amd64对应64位系统)
  • 若后续需要升级cups-filters,只需删除/etc/apt/preferences.d/cups-filters-pin文件即可
  • 若旧版本依赖问题无法通过deb包解决,可临时添加Ubuntu 20.04源,但需设置低优先级,避免干扰其他系统包的正常更新

内容的提问来源于stack exchange,提问作者Buddyshot

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.06 21:35:16