首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >sudo apt-get命令未找到

sudo apt-get命令未找到
EN

Ask Ubuntu用户
提问于 2014-11-16 03:40:29
回答 1查看 8K关注 0票数 0

我不能运行apt-获取更新或任何涉及apt-获取命令。我试过dpkg -配置-a,它就是这么说的。

代码语言:javascript
复制
root@lxoric-AOD270:/home/lxoric# sudo dpkg --configure -a
Setting up google-chrome-stable (38.0.2125.122-1) ...
dpkg: error processing package google-chrome-stable (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up update-notifier-common (0.154.1ubuntu1) ...
Traceback (most recent call last):
  File "/usr/lib/update-notifier/package-data-downloader", line 28, in <module>
import apt
  File "/usr/lib/python2.7/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
  ImportError: /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12: invalid ELF header
  dpkg: error processing package update-notifier-common (--configure):
   subprocess installed post-installation script returned error exit status 1
  Processing triggers for menu (2.1.46ubuntu1) ...
  In file "/usr/share/menu/libreoffice-impress", at (or in the definition that ends at) line 18:
  [Desktop Entry]
          ^
  Unexpected end of line.
  Skipping file because of errors...
  /usr/share/menu/ixconn_config: 1: /usr/share/menu/ixconn_config: Syntax error: word unexpected (expecting ")")
  /usr/share/menu/ixconn_folder: 1: /usr/share/menu/ixconn_folder: Syntax error: word unexpected (expecting ")")
  /usr/share/menu/ixconn: 1: /usr/share/menu/ixconn: Syntax error: word unexpected  (expecting ")")
  In file "/usr/share/menu/libreoffice-calc", at (or in the definition that ends at) line 2:
  ~\ekVL    I٤��{S�9<f��}QL�Nm���@)�%8���
                                     ^
  Unexpected end of line.
  Skipping file because of errors...
  In file "/usr/share/menu/libreoffice-calc", at (or in the definition that ends at) line 1:
  command=" META-INF/��PPK��dEMETA-INF/MANIFEST.MFE�M
                                                         �0D������m-j�G{�"      icon="" needs="PK" package="libreoffice-calc" sectio" title=""
     ^
  Expected: """
  install-menu: /etc/menu-methods/openbox: aborting
  update-menus[15714]: Script /etc/menu-methods/openbox returned error status 1.
  Errors were encountered while processing:
   google-chrome-stable
   update-notifier-common
  root@lxoric-AOD270:/home/lxoric# 
EN

回答 1

Ask Ubuntu用户

发布于 2014-11-16 16:42:03

启动(),键入- apt - in快速搜索框,在列表中看到- apt,右键单击并选择(安装标记),然后单击顶部的apply按钮,如果apt已经安装,请选择(标记为完全删除)并单击apply按钮,在完全删除后,您需要重新安装apt并重新启动系统。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/550169

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档