无法访问档案:没有此文件或库

无法访问档案:没有此文件或库
zenon@zenon-vostro2510:~$ sudo dpkg -i file:///home/zenon/Desktop/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu8_amd64.deb 
[sudo] password for zenon: 
dpkg: error processing archive file:///home/zenon/Desktop/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu8_amd64.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 file:///home/zenon/Desktop/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu8_amd64.deb

我找到的类似问题的所有答案都说文件路径错误,并要求复制/粘贴文件路径。这就是我所做的;这个文件路径是正确的。该文件存在。我正在尝试解决使我的 WiFi 适配器正常工作。我该如何修复此错误?

删除后file://,出现此错误,坦率地说,我不知道该怎么办。

zenon@zenon-vostro2510:~$ sudo dpkg -i /home/zenon/Desktop/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu8_amd64.deb
[sudo] password for zenon: 
(Reading database ... 172999 files and directories currently installed.)
Preparing to unpack .../bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu8_amd64.deb ...
Unpacking bcmwl-kernel-source (6.30.223.248+bdcom-0ubuntu8) over (6.30.223.248+bdcom-0ubuntu8) ...
dpkg: dependency problems prevent configuration of bcmwl-kernel-source:
 bcmwl-kernel-source depends on dkms; however:
  Package dkms is not installed.

dpkg: error processing package bcmwl-kernel-source (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 bcmwl-kernel-source

答案1

看起来您正在从 Chrome 或其他地方复制该文件路径(file://这是 Chrome 访问本地文件系统的方式)。

移除该file://部件,然后重/home/zenon/....试。

答案2

我认为 dpkg 无法处理您指定的文件的 URI 形式。请尝试

sudo dpkg -i /home/zenon/Desktop/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu8_amd64.deb 

答案3

/pool/restricted/b/bcmwl我从我的 Ubuntu live USB安装了该文件,如下这些说明按照你说的做。直到我重启后才意识到它起作用了。现在我可以毫无问题地访问互联网了。感谢两位回答我问题的网友!

相关内容