dpkg 出现错误 100

dpkg 出现错误 100

我是从 Windows 编码迁移到 Ubuntu 的新手,但一旦我登录到我的机器,dpkg 就会出现此错误,导致我无法安装任何软件包。我可能在安装以前的软件包时搞砸了等等。

顺便说一下,我正在使用 Ubuntu 15.10。

    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    root@lucas-G750JX:~# apt-get -f install
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
      dpkg update-notifier update-notifier-common
    The following NEW packages will be installed:
      dpkg
    The following packages will be upgraded:
      update-notifier update-notifier-common
    2 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
            Need to get 0 B/2.297 kB of archives.
    After this operation, 6.770 kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Could not exec dpkg!
    E: Sub-process /usr/bin/dpkg returned an error code (100)

尝试输入 ls -l /usr/bin/

   root@lucas-G750JX:~# ls -l /usr/bin/dpkg
   ls: cannot access /usr/bin/dpkg: No such file or directory

有什么解决此问题的提示吗?

答案1

您的系统缺少必要的软件包和程序dpkg。通常,可以使用软件包管理器安装缺少的软件包,但不幸的是dpkg 包管理器。

考虑到您似乎刚刚安装了 Ubuntu,我建议您重新安装它,因为这比在拙劣的系统上引导包管理器要容易得多。

相关内容