为什么 Eclipse 不断崩溃并且 dpkg 出错?

为什么 Eclipse 不断崩溃并且 dpkg 出错?

我收到错误:

E: Sub-process /usr/bin/dpkg returned an error code (1)

在我尝试升级 PC 时发生了这种情况。我使用 Eclipse,但它不断崩溃。请帮忙。

以下是终端的全文,包括错误消息:

sanju@sanju-Dell-System-XPS-L502X:~$ upgrade    
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  aisleriot gir1.2-rb-3.0 gir1.2-totem-1.0 gnome-disk-utility gnome-keyring
  libgck-1-0 libgcr-3-1 libtotem0 linux-generic linux-headers-generic
  linux-image-generic rhythmbox rhythmbox-data rhythmbox-mozilla
  rhythmbox-plugin-cdrecorder rhythmbox-plugin-magnatune
  rhythmbox-plugin-zeitgeist rhythmbox-plugins seahorse totem totem-common
  totem-mozilla totem-plugins
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up grub-pc (1.99-21ubuntu3.1) ...
/var/lib/dpkg/info/grub-pc.config: 35: /etc/default/grub: Syntax error: EOF in     backquote substitution
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 grub-pc 
E: Sub-process /usr/bin/dpkg returned an error code (1)    

答案1

您的 /etc/default/grub 文件不正确。

  1. 打开终端(Ctrl+Alt+T)
  2. 输入此命令:gksudo gedit /etc/default/grub
  3. 将打开一个文本文件,用以下标准内容替换其内容: 在此处输入图片描述

  4. 保存文件

  5. 连接互联网
  6. 在终端中,输入以下命令:

    sudo dpkg --configure -a
    sudo apt-get install -fy
    sudo apt-get update
    sudo apt-get upgrade
    

相关内容