如何使用终端在Ubuntu中安装.deb文件?

我正在尝试安装谷歌浏览器,为此我下载了一个 google-chrome-stable_current_i386.deb 文件。

当我尝试在终端中使用 install 进行安装时

sudo install google-chrome-stable_current_i386.deb

它会给出以下错误。

install: missing destination file operand after ‘google-chrome-stable_current_i386.deb’ Try 'install --help' for more information.

2个回答

你可以按照之前的回答所说,使用终端安装。
sudo dpkg -i google-chrome-stable_current_i386.deb

否则,您可以双击已下载的.deb文件,它将在Ubuntu软件中心(如果您使用的是Ubuntu)中打开。然后,您可以点击安装按钮进行安装。


我收到了“未安装软件包libappindicator1。”所以,如果目标机器没有网络,我还需要离线下载所有依赖项吗? - Mahesha999

你可以使用dpkg命令来安装它:
sudo dpkg -i google-chrome-stable_current_i386.deb

查看更多信息,请参考dpkg --help

我收到了“未安装软件包libappindicator1。”所以,如果目标机器没有网络,我还需要离线下载所有依赖项吗? - Mahesha999