Linux dpkg:需要一个操作选项吗
在回溯5r3上安装Google Chrome 但是我得到了错误dpkg:需要一个操作选项Linux dpkg:需要一个操作选项吗,linux,google-chrome,backtrack-linux,Linux,Google Chrome,Backtrack Linux,在回溯5r3上安装Google Chrome 但是我得到了错误dpkg:需要一个操作选项 root@bt:~# ls Desktop google-chrome-stable_current_i386.deb root@bt:~# dpkg .i google-chrome-stable_current_i386.deb dpkg: need an action option Type dpkg --help for help about installing and deinstallin
root@bt:~# ls
Desktop google-chrome-stable_current_i386.deb
root@bt:~# dpkg .i google-chrome-stable_current_i386.deb
dpkg: need an action option
Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].
Options marked [*] produce a lot of output - pipe it through `less' or `more' !
root@bt:~# dpkg .i google-chrome-stable_current_i386.deb
dpkg: need an action option
Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].
Options marked [*] produce a lot of output - pipe it through `less' or `more' !
root@bt:~#
现在出现此错误
root@bt:~# dpkg -i google-chrome-stable_current_i386.deb
(Reading database ... 266492 files and directories currently installed.)
Preparing to replace google-chrome-stable 33.0.1750.152-1 (using google-chrome- stable_current_i386.deb) ...
Unpacking replacement google-chrome-stable ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
google-chrome-stable depends on gconf-service; however:
Package gconf-service is not installed.
google-chrome-stable depends on libasound2 (>= 1.0.23); however:
Version of libasound2 on system is 1.0.22-0ubuntu7.
google-chrome-stable depends on libgconf-2-4 (>= 2.31.1); however:
Package libgconf-2-4 is not installed.
google-chrome-stable depends on libgcrypt11 (>= 1.4.5); however:
Version of libgcrypt11 on system is 1.4.4-5ubuntu2.1.
google-chrome-stable depends on libgdk-pixbuf2.0-0 (>= 2.22.0); however:
Package libgdk-pixbuf2.0-0 is not installed.
google-chrome-stable depends on libgtk2.0-0 (>= 2.24.0); however:
Version of libgtk2.0-0 on system is 2.20.1-0ubuntu2.1.
google-chrome-stable depends on libnspr4 (>= 1.8.0.10); however:
Package libnspr4 is not installed.
google-chrome-stable depends on libnss3 (>= 3.14.3); however:
Package libnss3 is not installed.
google-chrome-stable depends on libstdc++6 (>= 4.6); however:
Version of libstdc++6 on system is 4.4.3-4ubuntu5.1.
google-chrome-stable depends on libx11-6 (>= 2:1.4.99.1); however:
Version of libx11-6 on system is 2:1.3.2-1ubuntu3.
dpkg: error processing google-chrome-stable (--install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for man-db ...
Processing triggers for menu ...
Processing triggers for python-support ...
Errors were encountered while processing:
google-chrome-stable
请更正您的命令
dpkg-i google-chrome-stable\u current\u i386.deb
,您需要提供-i而不是.i选项使用以下命令:
dpkg -i google-chrome-stable_current_i386.deb
请注意参数i前面的“-” 即使使用-I,我也有这个错误。然后我试着使用--install,结果成功了 sudo dpkg——安装google-chrome-stable\u current\u i386.deb
今天我在学习如何安装chrome的教程时遇到了同样的问题。问题是我从教程中复制了一个不同的字符集,这导致了语法中连字符的混乱 从联机指令复制/粘贴命令而不是自己键入命令时,可能会发生此错误。因此,当您“复制并粘贴”时,问题源于字符的不同表示形式,而不是“-”,您最终得到的是“-”。复制和粘贴将产生“xxx–ixxxx”。。。但您的终端需要的是“-i”。第一个是较长的“短划线”,即“-”,而第二个(正确的)短划线是“-”。这种差异会导致错误。为了避免这种情况,只需通过直接从键盘键入来替换破折号。这对我很有效。上述解决方案应能解决“dpkg:需要行动选项”问题。您得到的新错误是什么?新问题是由于缺少依赖项造成的。首先执行“sudo apt get install-f”。然后运行“dpkg-i google-chrome-stable\u current\u i386.deb”。第一个命令将尝试解决缺少的依赖项。我现在已安装,但尚未启动:(请检查附带的屏幕截图…现在出现了什么错误:(:(