您还可以通过哪些其他方式安装 deb 文件

1 update-manager apt deb python3 20.04

前段时间我搞砸了我的电脑试图修复其他东西(它已经弄清楚了)并删除了一些核心文件,这使得我的电脑无法通过apt-get更新和安装。我知道我在那个动作上犯了一个无知的错误,我不需要提醒。

当我尝试在这里更新时,结果是:

pluto@pluto-Ubunu-Mate:~$ sudo apt-get update
[sudo] password for pluto: 
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:3 https://repo.steampowered.com/steam stable InRelease                     
Get:4 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]     
Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]      
Hit:6 http://ppa.launchpad.net/mutlaqja/ppa/ubuntu focal InRelease             
Hit:7 http://repository.spotify.com stable InRelease                           
Get:8 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]   
Hit:9 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal InRelease    
Get:10 http://us.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [493 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [24.5 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,036 kB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [58.2 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2,468 B]
Hit:15 http://ppa.launchpad.net/stellarium/stellarium-releases/ubuntu focal InRelease
Get:16 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [283 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [787 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [578 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [330 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [17.8 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:22 http://us.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [1,768 B]
Fetched 3,941 kB in 1s (2,911 kB/s)                                   
sh: 1: /usr/lib/cnf-update-db: not found
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
Run Code Online (Sandbox Code Playgroud)

当我尝试在这里升级时,结果是:

pluto@pluto-Ubunu-Mate:~$ sudo apt upgrade
[sudo] password for pluto: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 ubuntu-release-upgrader-core : Depends: python3-distupgrade (= 1:20.04.31) but 1:20.04.30 is installed
 ubuntu-release-upgrader-gtk : Depends: python3-distupgrade (= 1:20.04.31) but 1:20.04.30 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)

以上是为了显示对我的系统的损坏(我打算在以后更好地修复它)。现在是真正的问题,铬。我从 chrome 收到一条消息,说它需要更新,但由于我的电脑问题,谷歌说我需要重新安装 chrome。谷歌浏览器提供的唯一文件是 Debian 文件,由于我的计算机问题,我目前无法安装。

当我尝试安装 deb chrome 文件时:

pluto@pluto-Ubunu-Mate:~/Desktop$ sudo apt-get install google-chrome-stable_current_amd64.deb
[sudo] password for pluto: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package google-chrome-stable_current_amd64.deb
E: Couldn't find any package by glob 'google-chrome-stable_current_amd64.deb'
E: Couldn't find any package by regex 'google-chrome-stable_current_amd64.deb'
Run Code Online (Sandbox Code Playgroud)

我不是下载、安装、升级/更新计算机的不同方法的专家,我只了解基础知识。我知道我使用糟糕的做法弄乱了我的计算机的错误,这就是我问的原因。请多多谅解。我希望能够重新安装 chrome,以便在我能够正确重新安装之前使用它。

眼镜:

Ubuntu 版本-Ubuntu 20.04.2 LTS

侏儒版本 3.36.8

van*_*ium 5

你破坏了你的 APT 包管理系统。它处于不一致的状态。只要它坏了,您将无法安装或更新任何通过APT 包管理系统安装的软件,即涉及.deb安装文件。

没有“不同”的系统来安装.deb文件。按照设计,.deb文件是通过 APT 包管理系统安装的,也包括您手动下载并使用dpkg -i或安装的文件apt

基础坏了。您首先需要修复基础。在 APT 包管理系统再次一致之前,您无法升级当前的 Chrome 安装。

修复损坏的包装系统并不总是那么容易,并且没有一劳永逸的程序。请参阅有关损坏的软件包的一些早期问题:如何修复损坏的软件包?无法修复损坏的包(apt-get -f install 不起作用)无法修复损坏的包,...