首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在取消google-chrome后删除剩余的包。

在取消google-chrome后删除剩余的包。
EN

Ask Ubuntu用户
提问于 2019-04-24 17:15:57
回答 1查看 302关注 0票数 2

在此发表我的第一个问题到这个辉煌的论坛!

我有一个旧的,而且,由于32位xubuntu系统,不再支持,安装铬.根据update (见下文)的输出,remove命令没有将所有内容删除,所以我尝试了清除,这并没有改变结果。

我该怎么做?垃圾邮件限制阻止了我提供完整的文档,所以我希望一步一步地寻求帮助。

代码语言:javascript
运行
复制
peter@peter-HP-Compaq-2510p:~$ sudo apt-get update 
Ign:1 http ://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http ://se.archive.ubuntu.com/ubuntu bionic InRelease                     
Hit:3 http ://se.archive.ubuntu.com/ubuntu bionic-updates InRelease             
Hit:4 http ://se.archive.ubuntu.com/ubuntu bionic-backports InRelease           
Get:5 http ://dl.google.com/linux/chrome/deb stable Release [943 B]             
Get:6 http ://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]         
Get:7 http ://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Ign:8 http ://archive.canonical.com/ubuntu saucy InRelease                      
Err:9 http ://archive.canonical.com/ubuntu saucy Release                        
  404  Not Found [IP: 91.189.91.15 80]
Ign:6 http ://dl.google.com/linux/chrome/deb stable Release.gpg
Reading package lists... Done
E: The repository 'http ://archive.canonical.com/ubuntu saucy Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http ://dl.google.com/linux/chrome/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
E: The repository 'http ://dl.google.com/linux/chrome/deb stable Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
代码语言:javascript
运行
复制
peter@peter-HP-Compaq-2510p:~$ sudo apt-get remove google-chrome-stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'google-chrome-stable' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
代码语言:javascript
运行
复制
peter@peter-HP-Compaq-2510p:~$ sudo apt-get purge google-chrome-stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  google-chrome-stable*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 238783 files and directories currently installed.)
Purging configuration files for google-chrome-stable (48.0.2564.116-1) ...
代码语言:javascript
运行
复制
peter@peter-HP-Compaq-2510p:~$ sudo apt-get update
Hit:1 http ://se.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http ://se.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                  
Ign:3 http ://dl.google.com/linux/chrome/deb stable InRelease                                                        
Hit:4 http ://archive.canonical.com/ubuntu saucy InRelease                                     
Get:5 http ://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]                   
Hit:6 http ://se.archive.ubuntu.com/ubuntu bionic-backports InRelease                                       
Get:7 http ://dl.google.com/linux/chrome/deb stable Release [943 B]                                         
Get:8 http ://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]              
Ign:8 http://dl.google.com/linux/chrome/deb stable Release.gpg
Reading package lists... Done
W: GPG error: http ://dl.google.com/linux/chrome/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
E: The repository 'http ://dl.google.com/linux/chrome/deb stable Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
peter@peter-HP-Compaq-2510p:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
代码语言:javascript
运行
复制
peter@peter-HP-Compaq-2510p:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"

谢谢!

编辑:尝试了答案中提到的命令。注意,由于某种原因,这两个更新的输出顺序略有不同。

代码语言:javascript
运行
复制
peter@peter-HP-Compaq-2510p:~$ sudo apt-get autoclean
[sudo] password for peter: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done

peter@peter-HP-Compaq-2510p:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

peter@peter-HP-Compaq-2510p:~$ sudo apt-get update
Hit:1 http ://se.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http ://se.archive.ubuntu.com/ubuntu bionic-updates InRelease                               
Hit:3 http ://se.archive.ubuntu.com/ubuntu bionic-backports InRelease                             
Hit:4 http ://archive.canonical.com/ubuntu saucy InRelease                                        
Ign:5 http ://dl.google.com/linux/chrome/deb stable InRelease                                     
Get:6 http ://dl.google.com/linux/chrome/deb stable Release [943 B]                               
Get:7 http ://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]     
Get:8 http ://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]        
Ign:7 http ://dl.google.com/linux/chrome/deb stable Release.gpg 
Reading package lists... Done
W: GPG error: http ://dl.google.com/linux/chrome/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
E: The repository 'http ://dl.google.com/linux/chrome/deb stable Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details. 

peter@peter-HP-Compaq-2510p:~$ sudo apt-get update
Hit:1 http ://se.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http ://se.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                              
Ign:3 http ://dl.google.com/linux/chrome/deb stable InRelease                                                                    
Hit:4 http ://se.archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                                                            
Get:5 http ://dl.google.com/linux/chrome/deb stable Release [943 B]                                                                                                              
Get:6 http ://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]                                                                                    
Get:7 http ://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Ign:8 http ://archive.canonical.com/ubuntu saucy InRelease                            
Err:9 http ://archive.canonical.com/ubuntu saucy Release                              
  404  Not Found [IP: 91.189.91.15 80]
Ign :6 http ://dl.google.com/linux/chrome/deb stable Release.gpg
Reading package lists... Done
E: The repository 'http ://archive.canonical.com/ubuntu saucy Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http ://dl.google.com/linux/chrome/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
E: The repository 'http ://dl.google.com/linux/chrome/deb stable Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

编辑:使用sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 的结果

代码语言:javascript
运行
复制
peter@peter-HP-Compaq-2510p:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6494C6D6997C215E
Executing: /tmp/apt-key-gpghome.peImdN0Ry6/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 6494C6D6997C215E
gpg: key 7721F63BD38B4796: 17 signatures not checked due to missing keys
gpg: key 7721F63BD38B4796: public key "Google Inc. (Linux Packages Signing Authority) " imported
gpg: Total number processed: 1
gpg:               imported: 1

peter@peter-HP-Compaq-2510p:~$ sudo apt-get update
Hit:1 http ://se.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http ://se.archive.ubuntu.com/ubuntu bionic-updates InRelease             
Get:3 http ://se.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB] 
Ign:4 http ://dl.google.com/linux/chrome/deb stable InRelease                   
Get:5 http ://dl.google.com/linux/chrome/deb stable Release [943 B]             
Get:6 http ://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]         
Hit:7 http ://security.ubuntu.com/ubuntu bionic-security InRelease       
Ign:8 http ://archive.canonical.com/ubuntu saucy InRelease               
Err:9 http ://archive.canonical.com/ubuntu saucy Release
  404  Not Found [IP: 91.189.91.15 80]
Reading package lists... Done
E: The repository 'http ://archive.canonical.com/ubuntu saucy Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http ://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'

peter@peter-HP-Compaq-2510p:~$ sudo apt-get purge google-chrome-stable:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'google-chrome-stable' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

peter@peter-HP-Compaq-2510p:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
peter@peter-HP-Compaq-2510p:~$

编辑:使用GUI“软件和更新”后的结果,删除了一个带有crome的软件,另一个删除了带有the的软件。

代码语言:javascript
运行
复制
peter@peter-HP-Compaq-2510p:~$ sudo apt-get update
Hit:1 http ://se.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http ://se.archive.ubuntu.com/ubuntu bionic-updates InRelease
Get:3 http ://se.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Get:4 http ://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Hit:5 http ://archive.canonical.com/ubuntu saucy InRelease
Fetched 163 kB in 2s (71,9 kB/s)                                                                
Reading package lists... Done
peter@peter-HP-Compaq-2510p:~$ 

编辑:按照卡雷尔的建议,我在source.list中注释了以下一行:#deb-src http://archive.canonical.com/ubuntu saucy partner。现在只剩下四个项目有待解决。

代码语言:javascript
运行
复制
peter@peter-HP-Compaq-2510p:~$ sudo nano /etc/apt/sources.list
peter@peter-HP-Compaq-2510p:~$ sudo apt-get update
Hit:1 http ://se.archive.ubuntu.com/ubuntu bionic InRelease                                 
Hit:2 http ://se.archive.ubuntu.com/ubuntu bionic-updates InRelease                         
Get:3 http ://se.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Get:4 http ://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Fetched 163 kB in 4s (43,1 kB/s)                              
Reading package lists... Done
peter@peter-HP-Compaq-2510p:~$ 

编辑:根据卡雷尔的建议,试图通过改变sources.list来解决问题。

代码语言:javascript
运行
复制
peter@peter-HP-Compaq-2510p:~$ cat /etc/apt/sources.list
#Five lines inserted 04/25/2019 #P = commented out same day
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse  
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse  
deb http://archive.canonical.com/ubuntu bionic partner

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
#P deb http://se.archive.ubuntu.com/ubuntu/ bionic main restricted
#P deb-src http://se.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
#P deb http://se.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
#P deb-src http://se.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
#P deb http://se.archive.ubuntu.com/ubuntu/ bionic universe
#P deb-src http://se.archive.ubuntu.com/ubuntu/ bionic universe
#P deb http://se.archive.ubuntu.com/ubuntu/ bionic-updates universe
#P deb-src http://se.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
#P deb http://se.archive.ubuntu.com/ubuntu/ bionic multiverse
#P deb-src http://se.archive.ubuntu.com/ubuntu/ bionic multiverse
#P deb http://se.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
#P deb-src http://se.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
#P deb http://se.archive.ubuntu.com/ubuntu/ bionic-backports main universe multiverse restricted
#P deb-src http://se.archive.ubuntu.com/ubuntu/ bionic-backports main universe multiverse restricted

#P deb http://security.ubuntu.com/ubuntu bionic-security main restricted
#P deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
#P deb http://security.ubuntu.com/ubuntu bionic-security universe
#P deb-src http://security.ubuntu.com/ubuntu bionic-security universe
#P deb http://security.ubuntu.com/ubuntu bionic-security multiverse
#P deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu saucy partner
#deb-src http://archive.canonical.com/ubuntu saucy partner

# deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main # disabled on upgrade to bionic
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ xenial mainGXGXG
代码语言:javascript
运行
复制
peter@peter-HP-Compaq-2510p:~$ sudo apt-get update
Hit:1 http://archive.canonical.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease                                                           
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease                                                   
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Fetched 163 kB in 2s (84,5 kB/s)                                
Reading package lists... Done
peter@peter-HP-Compaq-2510p:~$ 
EN

回答 1

Ask Ubuntu用户

发布于 2019-04-24 18:54:46

代码语言:javascript
运行
复制
sudo apt-get autoclean 

sudo apt-get autoremove 

这两个命令清除旧的和未使用的包。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1137792

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档