我有一个旧打印机需要 LSB 软件包才能在 Debian 中安装 OpenPrinting 驱动程序:
准备符合 LSB 的发行版
然而,当前版本的 Debian 不再支持 LSB:
Debian 于 2015 年停止了 LSB 支持
因此,我无法在 Debian Buster 上安装该打印机的 OpenPrinting 驱动程序。
知道如何解决这个问题吗?
跟进
根据一些建议,我尝试从 Ubuntu 安装 LSB 软件包。
因此,我从 Ubuntu 19.04 下载了 LSB 软件包,网址为https://pkgs.org/
然后我尝试通过以下命令安装:
dpkg -i lsb_10.2019031300ubuntu1_all.deb
但是,缺少一些依赖项:
dpkg: dependency problems prevent configuration of lsb:
lsb depends on lsb-core (>= 10.2019031300ubuntu1); however: Package lsb-core is not installed.
lsb depends on lsb-printing (>= 10.2019031300ubuntu1); however: Package lsb-printing is not installed.
然后我下载了 lsb-core 软件包并尝试安装它:
dpkg -i lsb-core_10.2019031300ubuntu1_amd64.deb
再次,依赖问题:
dpkg: dependency problems prevent configuration of lsb-core:
lsb-core depends on libncurses5; however: Package libncurses5 is not installed.
lsb-core depends on lsb-invalid-mta (>= 10.2019031300ubuntu1) however: Package lsb-invalid-mta is not installed.
lsb-core depends on at; however: Package at is not installed.
lsb-core depends on binutils; however: Package binutils is not installed.
lsb-core depends on ed; however: Package ed is not installed.
lsb-core depends on libc6-dev | libc-dev; however:Package libc6-dev is not installed. Package libc-dev is not installed.
lsb-core depends on cups-bsd | lpr; however: Package cups-bsd is not installed. Package lpr is not installed.
lsb-core depends on m4; however: Package m4 is not installed.
lsb-core depends on mailx | mailutils; however: Package mailx is not installed. Package mailutils is not installed.
lsb-core depends on make; however: Package make is not installed.
lsb-core depends on patch; however: Package patch is not installed.
lsb-core depends on pax; however: Package pax is not installed.
lsb-core depends on rsync; however: Package rsync is not installed.
lsb-core depends on alien (>= 8.36); however: Package alien is not installed.
lsb-core depends on lsb-security (>= 10.2019031300ubuntu1); however: Package lsb-security is not installed.
lsb-core depends on time; however: Package time is not installed.
看来这不是一条路。
任何想法?
答案1
首先,Debian 上的 lsb 支持仍然通过元包提供,就像在 Ubuntu 上一样。因此,您可能可以从 获得所需的所有软件包apt
。运行apt-cache search "Linux Standard Base"
以显示哪些包可用。 Debian Jessie (oldstable) 应该有你需要的所有软件包。
如果您的发行版中缺少某些软件包。您可以通过下载旧的稳定 Debian 版本而不是 Ubuntu 等效版本来避免依赖性问题。
您可以找到oldstable lsb 包在这里。
然后创建一个目录,~/lsb_packages
并将所有软件包下载到此目录。这样,您可以使用单个命令安装软件包:
sudo apt install ~/lsb_packages/*.deb
我还建议使用sudo apt install
而不是sudo dpkg -i
安装驱动程序下载,因为apt
它将自动处理任何本机依赖性问题。
请记住,您必须跟踪安全更新。