Deepin应用商店与apt-get无法下载
Tofloor
poster avatar
EdwardTse
deepin
2017-07-10 19:02
Author
本帖最后由 EdwardTse 于 2017-7-10 11:16 编辑

已经尝试了论坛里的所有方法(包括但不限于换源、apt-get install 等),均无法下载。应用商店中所有软件都无法下载(提示下载失败)。apt-get尝试了bcloud也无法下载。
edwardtse@edwardtse-PC:~$ sudo apt-get install bcloud
[sudo] edwardtse 的密码:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
E: 无法定位软件包 bcloud
edwardtse@edwardtse-PC:~$ sudo apt-get install gimp -y
[sudo] edwardtse 的密码:
对不起,请重试。
[sudo] edwardtse 的密码:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
没有可用的软件包 gimp,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到

E: 软件包 gimp 没有可安装候选
edwardtse@edwardtse-PC:~$

望各位大神相助
Reply Favorite View the author
All Replies
avatar
EdwardTse
deepin
2017-07-10 19:20
#1
貌似看出端倪了
edwardtse@edwardtse-PC:~$ sudo apt-get update; sudo apt-get install lastore-daemon deepin-appstore deepin-appstore-data
0% [正在连接 packages.deepin.com (202.141.160.114)]


家里貌似连不上deepin的库,但已经尝试了换源(阿里云和中科大都重启试了),如何解决
Reply View the author
avatar
jingle
deepin
2017-07-10 19:38
#2
https://bbs.deepin.org/post/142289
貌似看出端倪了

家里貌似连不上deepin的库,但已经尝试了换源(阿里云和中科大都重启试了),如何解决

你的网络出现问题了?  ping 202.141.160.114
Reply View the author
avatar
EdwardTse
deepin
2017-07-10 19:44
#3
https://bbs.deepin.org/post/142289
你的网络出现问题了?  ping 202.141.160.114

没有问题


64 bytes from 202.141.160.114: icmp_seq=125 ttl=41 time=42.4 ms
64 bytes from 202.141.160.114: icmp_seq=126 ttl=41 time=44.8 ms
64 bytes from 202.141.160.114: icmp_seq=127 ttl=41 time=46.7 ms
64 bytes from 202.141.160.114: icmp_seq=128 ttl=41 time=56.6 ms
64 bytes from 202.141.160.114: icmp_seq=129 ttl=41 time=65.2 ms
64 bytes from 202.141.160.114: icmp_seq=130 ttl=41 time=44.2 ms
^C
--- 202.141.160.114 ping statistics ---
130 packets transmitted, 128 received, 1% packet loss, time 129193ms
rtt min/avg/max/mdev = 29.614/44.170/65.217/5.794 ms
Reply View the author
avatar
rdlg
deepin
2017-07-10 19:48
#4
把sources.list贴上来看看把
Reply View the author
avatar
EdwardTse
deepin
2017-07-10 20:38
#5
https://bbs.deepin.org/post/142289
把sources.list贴上来看看把

我是在设置里切换的
Reply View the author
avatar
EdwardTse
deepin
2017-07-10 20:41
#6
https://bbs.deepin.org/post/142289
把sources.list贴上来看看把
## Generated by deepin-installer-reborn
deb [by-hash=force] http://packages.deepin.com/deepin unstable main contrib non-free
#deb-src http://packages.deepin.com/deepin unstable main contrib non-free


在/etc/apt文件夹下
Reply View the author
avatar
jingle
deepin
2017-07-10 21:09
#7
https://bbs.deepin.org/post/142289
在/etc/apt文件夹下

sudo deepin-feedback-cli命令上传下生成的日志 如果问题还存在的话
Reply View the author
avatar
EdwardTse
deepin
2017-07-10 21:37
#8
https://bbs.deepin.org/post/142289
sudo deepin-feedback-cli命令上传下生成的日志 如果问题还存在的话

deepin-feedback-cli-Deepin-15.4-all-20170710-132903.tar.gz  麻烦了
Reply View the author
avatar
snyh1010
deepin
2017-07-11 02:49
#9
  1. [Info] [2017-07-10 11:35:37]@apt.go.189 Begin AptCommand:AptCommand{id:"update_source", Cancelable:true, CMD:"/bin/sh -c apt-get -y -o APT::Status-Fd=3 -o Dir::Etc::sourceparts=/var/lib/lastore/source.d update && /var/lib/lastore/scripts/build_system_info -now"}
  2. Err:1 http://packages.deepin.com/deepin unstable InRelease
  3.   Cannot initiate the connection to packages.deepin.com:80 (2001:da8:d800:95::114). - connect (101: Network is unreachable) [IP: 2001:da8:d800:95::114 80]
  4. Reading package lists...
  5. W: Failed to fetch http://packages.deepin.com/deepin/dists/unstable/InRelease  Cannot initiate the connection to packages.deepin.com:80 (2001:da8:d800:95::114). - connect (101: Network is unreachable) [IP: 2001:da8:d800:95::114 80]
  6. W: Some index files failed to download. They have been ignored, or old ones used instead.
  7. End AptCommand: update_source
Copy the Code


看着好像是你本地的apt-get尝试使用了ipv6。  但你ipv6网络又无法和packages.deepin.com进行连接,导致超时。。

你试试 apt-get update -o Acquire::ForceIPv4=true


(
  1. apt-config dump | grep -i ipv4
Copy the Code
) 用这个看你默认配置
Reply View the author
avatar
EdwardTse
deepin
2017-07-11 15:54
#10
本帖最后由 EdwardTse 于 2017-7-11 08:18 编辑
https://bbs.deepin.org/post/142289
看着好像是你本地的apt-get尝试使用了ipv6。  但你ipv6网络又无法和packages.deepin.com进行连接,导致超 ...

大神还是不行啊
edwardtse@edwardtse-PC:~$ sudo apt-get update -o Acquire::ForceIPv4=true
错误:1 http://packages.deepin.com/deepin unstable InRelease
  无法连接上 packages.deepin.com:80 (202.141.160.114),连接超时
正在读取软件包列表... 完成                             
W: 无法下载 http://packages.deepin.com/deepin/dists/unstable/InRelease  无法连接上 packages.deepin.com:80 (202.141.160.114),连接超时
W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
edwardtse@edwardtse-PC:~$

他得先连上网才能更改,我也在设置里把IPV6关掉了 sudo apt-get update -o Acquire::ForceIPv6=False也试过了。也用了这个帖子的方法http://blog.csdn.net/fenglailea/article/details/45173263。依然没有
Reply View the author
avatar
snyh1010
deepin
2017-07-11 16:43
#11
你直接
  1. curl   http://packages.deepin.com/deepin/dists/unstable/InRelease
Copy the Code
  是正常的么。。。
Reply View the author
avatar
snyh1010
deepin
2017-07-11 16:46
#12
另外再加个debug看具体是什么错误

  1. sudo apt-get update -o Debug::Acquire::http=true
Copy the Code
Reply View the author
avatar
EdwardTse
deepin
2017-07-11 19:32
#13
https://bbs.deepin.org/post/142289
另外再加个debug看具体是什么错误

edwardtse@edwardtse-PC:~$ sudo apt-get update -o Debug::Acquire::http=true
0% [Connecting to packages.deepin.com (202.141.160.114)] [Connecting to repositorGET /dists/stable/InRelease HTTP/1.1
Host: repository.spotify.com
Cache-Control: max-age=0
Accept: text/*
User-Agent: Debian APT-HTTP/1.3 (1.4~beta2)


Answer for: http://repository.spotify.com/dists/stable/InRelease
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 3302
Connection: keep-alive
Server: nginx
Date: Mon, 10 Jul 2017 22:42:21 GMT
Last-Modified: Fri, 24 Feb 2017 11:00:03 GMT
ETag: "58b01233-ce6"
Expires: Thu, 01 Jan 1970 00:00:01 GMT
Cache-Control: no-cache
Accept-Ranges: bytes
Vary: Accept-Encoding,Accept-Encoding
X-Cache: RefreshHit from cloudfront
Via: 1.1 75d3bdff1b8eb2920f04077d77f16ca0.cloudfront.net (CloudFront)
X-Amz-Cf-Id: oB-sk-YK-6dFHwzB3rZN4Y6bvxpDLBSyGN-VxIWrgF6iPYWeaOVWtw==

Get:1 http://repository.spotify.com stable InRelease [3,302 B]                  
0% [Connecting to packages.deepin.com (202.141.160.114)]GET /dists/stable/non-free/binary-i386/Packages.gz HTTP/1.1
Host: repository.spotify.com
Cache-Control: max-age=0
User-Agent: Debian APT-HTTP/1.3 (1.4~beta2)


0% [Connecting to packages.deepin.com (202.141.160.114)] [Waiting for headers]Answer for: http://repository.spotify.com/dists/stable/non-free/binary-i386/Packages.gz
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 1136
Connection: keep-alive
Server: nginx
Date: Sun, 09 Jul 2017 22:42:43 GMT
Last-Modified: Fri, 24 Feb 2017 11:00:03 GMT
ETag: "58b01233-470"
Expires: Thu, 01 Jan 1970 00:00:01 GMT
Cache-Control: no-cache
Accept-Ranges: bytes
Vary: Accept-Encoding,Accept-Encoding
X-Cache: RefreshHit from cloudfront
Via: 1.1 75d3bdff1b8eb2920f04077d77f16ca0.cloudfront.net (CloudFront)
X-Amz-Cf-Id: iybUQ1elntIvJ5Q1waN32JicbcmGI7pLpP5lgSGqbARYyXYqyfijAw==

Get:2 http://repository.spotify.com stable/non-free i386 Packages [1,136 B]   
0% [Connecting to packages.deepin.com (202.141.160.114)]               547 B/s 2sGET /dists/stable/non-free/binary-amd64/Packages.gz HTTP/1.1
Host: repository.spotify.com
Cache-Control: max-age=0
User-Agent: Debian APT-HTTP/1.3 (1.4~beta2)


0% [Connecting to packages.deepin.com (202.141.160.114)] [Waiting for headers]Answer for: http://repository.spotify.com/dists/stable/non-free/binary-amd64/Packages.gz
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 1588
Connection: keep-alive
Server: nginx
Date: Sat, 08 Jul 2017 12:44:51 GMT
Last-Modified: Fri, 24 Feb 2017 11:00:03 GMT
ETag: "58b01233-634"
Expires: Thu, 01 Jan 1970 00:00:01 GMT
Cache-Control: no-cache
Accept-Ranges: bytes
Vary: Accept-Encoding,Accept-Encoding
X-Cache: RefreshHit from cloudfront
Via: 1.1 75d3bdff1b8eb2920f04077d77f16ca0.cloudfront.net (CloudFront)
X-Amz-Cf-Id: yphb8KaLmRXX6oABZeg1E70RIIPtp3W0iPppQTJHjQecrOTZ8vpp7A==

Get:3 http://repository.spotify.com stable/non-free amd64 Packages [1,588 B]  
Err:4 http://packages.deepin.com/deepin unstable InRelease                                                                                            
  Cannot initiate the connection to packages.deepin.com:80 (2001:da8:d800:95::114). - connect (101: Network is unreachable) [IP: 2001:da8:d800:95::114 80]
Fetched 6,026 B in 2min 1s (49 B/s)                     
Reading package lists... Done
W: Failed to fetch http://packages.deepin.com/deepin/dists/unstable/InRelease  Cannot initiate the connection to packages.deepin.com:80 (2001:da8:d800:95::114). - connect (101: Network is unreachable) [IP: 2001:da8:d800:95::114 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
edwardtse@edwardtse-PC:~$

Reply View the author
Comments
snyh1010
2017-07-11 20:55
看着好奇怪呀。。貌似一开始是用ipv4去链接的packages.deepin.com, 然后等了半天没响应后改用ipv6了。
你试试把 /etc/apt/sources.list.d/spotify.list 删掉,再执行下
avatar
EdwardTse
deepin
2017-07-11 19:34
#14
https://bbs.deepin.org/post/142289
你直接
   是正常的么。。。

edwardtse@edwardtse-PC:~$ curl   http://packages.deepin.com/deepin/dists/unstable/InRelease
bash: curl: command not found
  

edwardtse@edwardtse-PC:~$ sudo curl http://packages.deepin.com/deepin/dists/unstable/InRelease
sudo: curl: command not found
Reply View the author
Comments
snyh1010
2017-07-11 20:53
用wget http://packages.deepin.com/deepin/dists/unstable/InRelease
avatar
EdwardTse
deepin
2017-07-11 21:20
#15
https://bbs.deepin.org/post/142289
edwardtse@edwardtse-PC:~$ curl   http://packages.deepin.com/deepin/dists/unstable/InRelease
bash:  ...

edwardtse@edwardtse-PC:~$ wget http://packages.deepin.com/deepin/dists/unstable/InRelease
--2017-07-12 13:16:02--  http://packages.deepin.com/deepin/dists/unstable/InRelease
Resolving packages.deepin.com (packages.deepin.com)... 202.141.160.114, 2001:da8:d800:95::114
Connecting to packages.deepin.com (packages.deepin.com)|202.141.160.114|:80... failed: Connection timed out.
Connecting to packages.deepin.com (packages.deepin.com)|2001:da8:d800:95::114|:80... failed: Network is unreachable.
Reply View the author
Comments
snyh1010
2017-07-13 02:10
试下禁用网卡的IPv6 .  sudo sh -c "echo 1 >  /proc/sys/net/ipv6/conf/$网卡名称/disable_ipv6"
snyh1010
2017-07-13 02:10
很奇怪为什么foreceIpv4没有生效。。
avatar
EdwardTse
deepin
2017-07-11 21:22
#16
https://bbs.deepin.org/post/142289
edwardtse@edwardtse-PC:~$ sudo apt-get update -o Debug::Acquire::http=true
0% [Connecting to packa ...

edwardtse@edwardtse-PC:~$ sudo rm  /etc/apt/sources.list.d/spotify.list
[sudo] password for edwardtse:
edwardtse@edwardtse-PC:~$ sudo apt-get update -o Debug::Acquire::http=true
Err:1 http://packages.deepin.com/deepin unstable InRelease
  Cannot initiate the connection to packages.deepin.com:80 (2001:da8:d800:95::114). - connect (101: Network is unreachable) [IP: 2001:da8:d800:95::114 80]
Reading package lists... Done                           
W: Failed to fetch http://packages.deepin.com/deepin/dists/unstable/InRelease  Cannot initiate the connection to packages.deepin.com:80 (2001:da8:d800:95::114). - connect (101: Network is unreachable) [IP: 2001:da8:d800:95::114 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reply View the author
avatar
EdwardTse
deepin
2017-07-11 21:24
#17
https://bbs.deepin.org/post/142289
edwardtse@edwardtse-PC:~$ curl   http://packages.deepin.com/deepin/dists/unstable/InRelease
bash:  ...

但是ping可以
PING 202.141.160.114 (202.141.160.114) 56(84) bytes of data.
64 bytes from 202.141.160.114: icmp_seq=1 ttl=41 time=31.7 ms
64 bytes from 202.141.160.114: icmp_seq=2 ttl=41 time=37.7 ms
64 bytes from 202.141.160.114: icmp_seq=3 ttl=41 time=34.7 ms
64 bytes from 202.141.160.114: icmp_seq=4 ttl=41 time=39.2 ms
64 bytes from 202.141.160.114: icmp_seq=5 ttl=41 time=39.6 ms
^C
--- 202.141.160.114 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 31.706/36.606/39.674/2.999 ms
Reply View the author
Comments
snyh1010
2017-07-13 02:09
ping是走ipv4,  ping6 是ipv6
avatar
alien2010
deepin
2017-07-12 21:17
#18
我的前段时间也是这样,后来我分析可能是我在后台误删了一些文件造成的。
我通过以下两个命令就完成了所有软件的升级:
sudo apt-get update && sudo apt-get upgrade,完成后软件都更新了最新的包,挺开心的,不过关机后再开机就出现了无法正常登陆的问题了,现象就是输入用户名和密码以后进入桌面就闪一下,又回到登陆界面,重启问题依旧,后来就进终端,看看/目录所在的分区是否满了,以前因为在这个出现过这种问题。后来发现没满,然后就是查找解决办法,最后试了下系统升级的命令sudo apt-get dist-upgrade,升级后系统从15.3升级到了15.4,一切问题都解决了。商店里的软件也能下载安装了。
Reply View the author
Comments
snyh1010
2017-07-13 02:08
楼主是系统走了IPv6去访问,但网络不通。 和你这个情况没有任何关系。。