当我尝试安装 chromium-browser 时出现 snap 错误

当我尝试安装 chromium-browser 时出现 snap 错误

当我输入这个时:

sudo apt-get install chromium-browser

我明白了:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  chromium-browser
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 48.3 kB of archives.
After this operation, 164 kB of additional disk space will be used.
Get:1 http://dz.archive.ubuntu.com/ubuntu focal/universe amd64 chromium-browser amd64 80.0.3987.163-0ubuntu1 [48.3 kB]
Fetched 48.3 kB in 6s (8,267 B/s)           
Preconfiguring packages ...
Selecting previously unselected package chromium-browser.
(Reading database ... 178512 files and directories currently installed.)
Preparing to unpack .../chromium-browser_80.0.3987.163-0ubuntu1_amd64.deb ...
=> Installing the chromium snap
==> Checking connectivity with the snap store
==> Installing the chromium snap
error: snap "chromium" has "install-snap" change in progress
dpkg: error processing archive /var/cache/apt/archives/chromium-browser_80.0.3987.163-0ubuntu1_amd64.deb (--unpack):
 new chromium-browser package pre-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 /var/cache/apt/archives/chromium-browser_80.0.3987.163-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

看起来是什么问题?

答案1

我认为你的后台有什么东西阻止你安装该软件包

跑步$ snap changes

您将得到与此类似的结果,您应该搜索任何正在进行/正在进行的进程,以便可以中止它

ID Estate Generated Ready Description
10 Doing  when            installing snap "chromium"

现在您将获取正在执行的进程 ID,只需输入此命令,10 是我的进程,您将得到一个不同的进程。使用此命令,您将中止该进程,以便可以生成一个新的进程,希望没有任何麻烦

$ sudo snap abort 10

相关内容