dpkg: error: cannot access archive 'libexpat1-dev_2.2.9-1ubuntu0.6_amd64.deb': No such file or directory
时间: 2024-04-13 14:29:25 浏览: 261
这个错误提示说明找不到指定的.deb文件。请确保你在执行安装命令时,提供了正确的文件路径和文件名。你可以使用绝对路径或相对路径来指定文件位置。
如果你确定文件存在,可以尝试使用绝对路径来进行安装,例如:
```shell
sudo dpkg -i /path/to/libexpat1-dev_2.2.9-1ubuntu0.6_amd64.deb
```
如果文件在当前工作目录中,你可以使用相对路径来指定文件位置,例如:
```shell
sudo dpkg -i ./libexpat1-dev_2.2.9-1ubuntu0.6_amd64.deb
```
请确保输入的文件路径和文件名是正确的,并且文件确实存在于指定位置。
相关问题
An error occurred while applying changes: dpkg: regarding .../libglx-dev_1.3.2-1_amd64.deb containing libglx-dev:amd64: libglx-dev breaks libglvnd-dev (<< 1.3.0-1) libglvnd-dev:amd64 (version 1.1.0-1) is present and installed.
It seems that there is a conflict between the package "libglx-dev" and "libglvnd-dev". The former is trying to break the latter which has a version that is less than 1.3.0-1. However, the version installed on your system is 1.1.0-1. To resolve this issue, you might need to upgrade "libglvnd-dev" to a version that is greater than or equal to 1.3.0-1. You can try running the following command to upgrade the package:
```
sudo apt-get install libglvnd-dev
```
After that, you can try applying the changes again and see if the error persists.
ubuntu20.04执行dpkg -i *.deb报错dpkg: error: cannot access archive '*.deb': No such file or directory
这个错误提示说明当前目录下没有找到任何以.deb结尾的文件,因此无法执行dpkg命令。请确认当前目录下是否存在需要安装的.deb文件。如果没有,请先下载需要安装的.deb文件,并将其放到当前目录下。如果已经存在.deb文件,但是仍然无法执行dpkg命令,可能是因为文件名中包含特殊字符导致无法识别,请检查文件名是否合法。
阅读全文