如何安装本地的.deb包
usually I do dpkg -i <deb file>
, it‘ll fail saying it needs dependencies.
After that when you do an apt-get update
it‘ll say at the end something like "dependencies are ready to install" I think it then advises to use apt-get install -f
.
Once that‘s done, I use dpkg -i
again.
Worked fine for me last few years.
edit: looking a bit further, apparently a tool called gdebi
can do this as gdebi [deb file]
参考:
https://superuser.com/questions/196864/how-to-install-local-deb-packages-with-apt-get
时间: 2024-11-02 05:46:55