如何在 Ubuntu 20.04 LTS 版本中重新安装 Ubuntu 软件?

如何在 Ubuntu 20.04 LTS 版本中重新安装 Ubuntu 软件?

最近,我彻底清除了旧磁盘数据并安装了 20.04 LTS 版本的 Ubuntu。但是,Ubuntu 软件无法正常工作。我甚至无法安装该软件。请参考以下内容:为什么 Ubuntu 软件中没有出现类别项目?

因此,我尝试按照以下步骤重新安装 Ubuntu 软件文件,但出现以下错误:

Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease              
Hit:2 http://kr.archive.ubuntu.com/ubuntu focal InRelease                     
Get:3 http://kr.archive.ubuntu.com/ubuntu focal-updates InRelease [89.1 kB]
Hit:4 http://kr.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:5 http://kr.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [648 B]
Get:6 http://kr.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2,000 B]
Fetched 91.8 kB in 2s (44.6 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package software-center is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'software-center' has no installation candidate

+ 更新-1

已安装的pkgs:

ii  appstream                                  0.12.10-2                             amd64        Software component metadata management
ii  brltty                                     6.0+dfsg-4ubuntu6                     amd64        Access software for a blind person using a braille display
ii  docbook-xml                                4.5-9                                 all          standard XML documentation system for software and systems
ii  espeak-ng-data:amd64                       1.50+dfsg-6                           amd64        Multi-lingual software speech synthesizer: speech data files
ii  gnome-software                             3.36.0-0ubuntu3                       amd64        Software Center for GNOME
ii  gnome-software-common                      3.36.0-0ubuntu3                       all          Software Center for GNOME (common files)
ii  gnome-software-plugin-snap                 3.36.0-0ubuntu3                       amd64        Snap support for GNOME Software
ii  libdv4:amd64                               1.0.0-12                              amd64        software library for DV format digital video (runtime lib)
ii  libespeak-ng1:amd64                        1.50+dfsg-6                           amd64        Multi-lingual software speech synthesizer: shared library
ii  libqpdf26:amd64                            9.1.1-1build1                         amd64        runtime library for PDF transformation/inspection software
ii  libtss2-esys0                              2.3.2-1                               amd64        TPM2 Software stack library - TSS and TCTI libraries
ii  python3-software-properties                0.98.9                                all          manage the repositories that you install software from
ii  software-properties-common                 0.98.9                                all          manage the repositories that you install software from (common)
ii  software-properties-gtk                    0.98.9                                all          manage the repositories that you install software from (gtk)
ii  xbrlapi                                    6.0+dfsg-4ubuntu6                     amd64        Access software for a blind person using a braille display - xbrlapi

+更新-2

快照列表:

Name               Version                     Rev   Tracking         Publisher     Notes
chromium           81.0.4044.122               1123  latest/stable    canonical✓    -
core18             20200311                    1705  latest/stable    canonical✓    base
gimp               2.10.18                     252   latest/stable    snapcrafters  -
gnome-3-28-1804    3.28.0-16-g27c9498.27c9498  116   latest/stable    canonical✓    -
gnome-3-34-1804    0+git.2c86692               27    latest/stable/…  canonical✓    -
gtk-common-themes  0.1-36-gc75f853             1506  latest/stable/…  canonical✓    -
libreoffice        6.4.3.2                     177   latest/stable    canonical✓    -
snap-store         3.36.0-74-ga164ec9          433   latest/stable/…  canonical✓    -
snapd              2.44.3                      7264  latest/stable    canonical✓    snapd

答案1

安装

您可以安装Ubuntu 软件像这样:

sudo apt install ubuntu-software

或安装Gnome 软件Ubuntu 的新版本像这样:

sudo apt install gnome-software

重新安装

您可以重新安装Ubuntu 软件像这样:

sudo apt install --reinstall ubuntu-software

或重新安装Gnome 软件Ubuntu 的新版本像这样:

sudo apt install --reinstall gnome-software

重置

您可以重置Ubuntu 软件恢复其原始设置。

第一的,像这样清除它:

sudo apt purge ubuntu-software

然后,像这样安装:

sudo apt install ubuntu-software

或重置Gnome 软件Ubuntu 的新版本

第一的,像这样清除它:

sudo apt purge gnome-software

然后,像这样安装:

sudo apt install gnome-software

注意

您可以删除Snap 商店可能已经安装(尽管我建议你保留它)像这样:

sudo snap remove snap-store

您可以安装Snap 商店再次像这样:

sudo snap install snap-store

答案2

我听说他们已经改用 snap store 了。你可以尝试一下这两种方式。

sudo apt-get update
sudo apt-get install gnome-software

或者

sudo apt-get update
sudo snap install snap-store

答案3

您可以尝试访问 snap 商店网站并从那里下载商店snap 商店

相关内容