安装 emacs-lucid 时出错

安装 emacs-lucid 时出错

当我从 19.04 升级到 19.10 时,有一个包无法更新emacs-lucid

当我尝试立即升级它时,出现错误:

dpkg: warning: old emacs-lucid package pre-removal script subprocess returned error exit status 127

当我尝试通过 Ubuntu 软件安装或删除软件时,出现以下信息:

E: The package emacs-lucid needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.

安装 Synaptics 后,第二个错误消息开始出现。我尝试告诉它不要升级emacs-lucid,但现在我无法更新任何内容。

输出为apt-cache policy emacs-lucid

emacs-lucid:
Installed: 1:26.1+1-3.2ubuntu2
Candidate: 1:26.3+1-1ubuntu1
Version table:
1:26.3+1-1ubuntu1 500
500 http://ca.archive.ubuntu.com/ubuntu eoan/universe amd64 Packages
*** 1:26.1+1-3.2ubuntu2 100
100 /var/lib/dpkg/status)

运行后sudo apt-get install emacs-lucid=1:26.1+1-3.2ubuntu2我得到:

The following information may help resolve the situation:

The following packages have unmet dependencies:
 emacs-lucid : Depends: emacs-bin-common (= 1:26.1+1-3.2ubuntu2) but 1:26.3+1-1ubuntu1 is to be installed
               Depends: emacs-common (= 1:26.1+1-3.2ubuntu2) but 1:26.3+1-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

运行后apt-cache policy emacs-bin-common emacs-common我得到:

  Installed: 1:26.3+1-1ubuntu1
  Candidate: 1:26.3+1-1ubuntu1
  Version table:
 *** 1:26.3+1-1ubuntu1 500
        500 http://ca.archive.ubuntu.com/ubuntu eoan/main amd64 Packages
        100 /var/lib/dpkg/status
emacs-common:
  Installed: 1:26.3+1-1ubuntu1
  Candidate: 1:26.3+1-1ubuntu1
  Version table:
 *** 1:26.3+1-1ubuntu1 500
        500 http://ca.archive.ubuntu.com/ubuntu eoan/main amd64 Packages
        500 http://ca.archive.ubuntu.com/ubuntu eoan/main i386 Packages
        100 /var/lib/dpkg/status

相关内容