apt-get update失败
Tofloor
poster avatar
andycong
deepin
2020-02-25 06:39
Author
本帖最后由 andycong 于 2020-2-24 22:43 编辑

我使用阿里镜像源和默认镜像源都试过,update 报的错误类似。

```
cong@pc:~$ cat /etc/apt/sources.list
## Generated by deepin-installer
deb [by-hash=force] http://mirrors.aliyun.com/deepin lion main contrib non-free
#deb-src http://packages.deepin.com/deepin camel main contrib non-free
cong@pc:~$ sudo apt-get update
Get:1 http://mirrors.aliyun.com/deepin lion InRelease [11.4 kB]                           
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                                                                           
Ign:3 http://mirrors.aliyun.com/deepin lion/contrib i386 Packages                                    
Get:4 http://dl.google.com/linux/chrome/deb stable Release [943 B]                                   
Ign:5 http://mirrors.aliyun.com/deepin lion/non-free i386 Packages                           
Get:6 http://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]
Get:7 http://repository.spotify.com stable InRelease [3,316 B]                                       
Ign:8 http://mirrors.aliyun.com/deepin lion/main i386 Packages                                             
Ign:6 http://dl.google.com/linux/chrome/deb stable Release.gpg           
Ign:7 http://repository.spotify.com stable InRelease                     
Ign:9 http://mirrors.aliyun.com/deepin lion/main amd64 Packages         
Hit:10 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
Ign:11 http://mirrors.aliyun.com/deepin lion/contrib amd64 Packages      
Ign:12 http://mirrors.aliyun.com/deepin lion/non-free amd64 Packages
Get:3 http://mirrors.aliyun.com/deepin lion/contrib i386 Packages [108 kB]
Get:5 http://mirrors.aliyun.com/deepin lion/non-free i386 Packages [194 kB]
Get:8 http://mirrors.aliyun.com/deepin lion/main i386 Packages [15.4 MB]
Get:9 http://mirrors.aliyun.com/deepin lion/main amd64 Packages [15.5 MB]
Hit:13 http://linux.teamviewer.com/deb stable InRelease                        
Get:11 http://mirrors.aliyun.com/deepin lion/contrib amd64 Packages [114 kB]
Get:12 http://mirrors.aliyun.com/deepin lion/non-free amd64 Packages [239 kB]        
Fetched 31.6 MB in 3s (8,265 kB/s)                        
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 78BD65473CB3BD13
W: The repository 'http://dl.google.com/linux/chrome/deb stable Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4773BD5E130D1D45
W: The repository 'http://repository.spotify.com stable InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
cong@pc:~$

```

这个安装不成功,导致我安装nodejs,一直失败。 错误如下。
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -sudo apt-get install -y nodejs
```
cong@pc:~$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

## Installing the NodeSource Node.js 12.x repo...


## Populating apt-get cache...

+ apt-get update
Hit:1 http://mirrors.aliyun.com/deepin lion InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                                             
Hit:3 http://dl.google.com/linux/chrome/deb stable Release                    
Hit:4 http://linux.teamviewer.com/deb stable InRelease  
Get:5 http://repository.spotify.com stable InRelease [3,316 B]           
Get:6 http://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]            
Ign:6 http://dl.google.com/linux/chrome/deb stable Release.gpg   
Ign:5 http://repository.spotify.com stable InRelease           
Fetched 4,135 B in 1s (3,342 B/s)
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 78BD65473CB3BD13
W: The repository 'http://dl.google.com/linux/chrome/deb stable Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4773BD5E130D1D45
W: The repository 'http://repository.spotify.com stable InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

## Confirming "camel" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_12.x/dists/camel/Release'

## Your distribution, identified as "camel", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support

cong@pc:~$

```
这是不良信息? 什么情况?



Reply Favorite View the author
All Replies
avatar
残念
deepin
2020-02-25 07:22
#1
你应该是专业版吧,随便换源就是自找麻烦,幸好没有升级,不然就只能重装系统了,将阿里源前面加“#”注释掉或者直接删掉。在更新一下。
Reply View the author
avatar
残念
deepin
2020-02-25 07:26
#2
nodejs建议用nvm,非常简单,百度搜一下就好了。补充一下,“camel”是专业版的代号,“lion”是社区稳定版的代号,“panda”是社区测试版的代号,官方已不再维护了
Reply View the author
avatar
andycong
deepin
2020-03-09 22:56
#3
https://bbs.deepin.org/post/189257
你应该是专业版吧,随便换源就是自找麻烦,幸好没有升级,不然就只能重装系统了,将阿里源前面加“#”注释 ...

是专业版本的。 自带的源也是同样的问题。
另外,我尝试换成社区稳定版本,也是同样的问题。
deb-src http://packages.deepin.com/deepin lion main contrib non-free
Reply View the author
avatar
残念
deepin
2020-03-09 23:28
#4
https://bbs.deepin.org/post/189257
是专业版本的。 自带的源也是同样的问题。
另外,我尝试换成社区稳定版本,也是同样的问题。
deb-src h ...

不是deepin官方源的问题,根本不需要改动,是第三方源的问题,在 /etc/apt/sources.list.d 文件夹里的文件都删了
将sources.list恢复原样,代号是caml 不能使用带有lion和panda字符的源! 不要换社区版的源!!!!
安装node不用修改源,如果需要安装官方源里没有的软件,可以在论坛发帖子
Reply View the author