无法安装软件&更新----已经得到解决
Tofloor
poster avatar
justforcon
deepin
2016-12-16 16:51
Author
本帖最后由 justforcon 于 2016-12-16 15:42 编辑

如果各位有相同的问题,请参考15楼
-------------------------------------------------------------------------------
之前只是想试试深度的系统,分了14G用来装深度,觉得好用就干脆换掉了ubuntu,重装了深度,重装过后发现软件都没法装了,一直安装失败,记得当时系统是有更新的,现在还是用的之前的版本,检查更新,一直提示已经是最新版本,各位有相同的问题吗!
Reply Favorite View the author
All Replies
avatar
justforcon
deepin
2016-12-16 16:52
#1
这是我命令行安装mysql安装失败的输出:
sudo apt-get install mysql-server
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
The following additional packages will be installed:
  libaio1 libcgi-fast-perl libcgi-pm-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl
  libfcgi-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl
  libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmysqlclient18 libterm-readkey-perl
  libtimedate-perl mysql-client-5.6 mysql-client-core-5.6 mysql-common mysql-server-5.6
  mysql-server-core-5.6
建议安装的软件包:
  libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl libdata-dump-perl
  libipc-sharedcache-perl mailx tinyca
下列【新】软件包将被安装:
  libaio1 libcgi-fast-perl libcgi-pm-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl
  libfcgi-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl
  libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmysqlclient18 libterm-readkey-perl
  libtimedate-perl mysql-client-5.6 mysql-client-core-5.6 mysql-common mysql-server mysql-server-5.6
  mysql-server-core-5.6
升级了 0 个软件包,新安装了 23 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 488 kB/22.2 MB 的软件包。
解压缩后会消耗掉 157 MB 的额外空间。
您希望继续执行吗? [Y/n] y
错误:1 http://packages.deepin.com/deepin unstable/main amd64 libdbd-mysql-perl amd64 4.033-1+b1
  404  Not Found [IP: 202.141.160.114 80]
错误:2 http://packages.deepin.com/deepin unstable/main amd64 libaio1 amd64 0.3.110-2
  404  Not Found [IP: 202.141.160.114 80]
错误:3 http://packages.deepin.com/deepin unstable/main amd64 libhtml-parser-perl amd64 3.72-1
  404  Not Found [IP: 202.141.160.114 80]
忽略:4 http://packages.deepin.com/deepin unstable/main i386 libcgi-pm-perl all 4.28-1
错误:5 http://packages.deepin.com/deepin unstable/main amd64 libfcgi-perl amd64 0.77-1+b2
  404  Not Found [IP: 202.141.160.114 80]
错误:4 http://packages.deepin.com/deepin unstable/main i386 libcgi-pm-perl all 4.28-1
  404  Not Found [IP: 202.141.160.114 80]
E: 无法下载 http://packages.deepin.com/deepin/pool/main/libd/libdbd-mysql-perl/libdbd-mysql-perl_4.033-1+b1_amd64.deb  404  Not Found [IP: 202.141.160.114 80]

E: 无法下载 http://packages.deepin.com/deepin/pool/main/liba/libaio/libaio1_0.3.110-2_amd64.deb  404  Not Found [IP: 202.141.160.114 80]

E: 无法下载 http://packages.deepin.com/deepin/pool/main/libh/libhtml-parser-perl/libhtml-parser-perl_3.72-1_amd64.deb  404  Not Found [IP: 202.141.160.114 80]

E: 无法下载 http://packages.deepin.com/deepin/pool/main/libc/libcgi-pm-perl/libcgi-pm-perl_4.28-1_all.deb  404  Not Found [IP: 202.141.160.114 80]

E: 无法下载 http://packages.deepin.com/deepin/pool/main/libf/libfcgi-perl/libfcgi-perl_0.77-1+b2_amd64.deb  404  Not Found [IP: 202.141.160.114 80]

E: 有几个软件包无法下载,您可以运行 apt-get update 或者加上 --fix-missing 的选项再试试?
Reply View the author
avatar
justforcon
deepin
2016-12-16 16:53
#2
https://bbs.deepin.org/post/133091
这是我命令行安装mysql安装失败的输出:
sudo apt-get install mysql-server
正在读取软件包列表... 完成

加上--fix-missing也无济于事
Reply View the author
avatar
justforcon
deepin
2016-12-16 16:56
#3
在次附上刚生成的反馈包
Reply View the author
avatar
jingle
deepin
2016-12-16 17:06
#4
https://bbs.deepin.org/post/133091
加上--fix-missing也无济于事

安装之前update了吗?
14g 空间估计太小。
Reply View the author
avatar
ruanjisheng
deepin
2016-12-16 17:09
#5
有没有试过命令行下更新
我当时也是出现了这个问题,然后在命令行下更新之后就好了
sudo apt update
(深度的官方源好像是有一点问题,你试试用手机做wifi热点,连接看看)
Reply View the author
avatar
justforcon
deepin
2016-12-16 20:15
#6
jingle 发表于 2016-12-16 09:06
安装之前update了吗?
14g 空间估计太小。

update了   ,之前试用的14G用的蛮好的,现在的有一百多个G  应该不是硬盘的问题
Reply View the author
avatar
justforcon
deepin
2016-12-16 20:18
#7
ruanjisheng 发表于 2016-12-16 09:09
有没有试过命令行下更新
我当时也是出现了这个问题,然后在命令行下更新之后就好了
sudo apt update

感谢,已经update过了 ,命令行或者应用商店都不行,然后用命令行装一个tree倒是成功了,MySQL不行
Reply View the author
avatar
Island
deepin
2016-12-16 20:31
#8
什么网络  感觉像缓存服务器问题,因为你下载的索引和文件名不对  索引是旧的  去找文件的时候文件已经不存在。
Reply View the author
avatar
justforcon
deepin
2016-12-16 20:35
#9
zhangshuang 发表于 2016-12-16 12:31
什么网络  感觉像缓存服务器问题,因为你下载的索引和文件名不对  索引是旧的  去找文件的时候文件已经不存 ...

移动的宽带,用的默认源
Reply View the author
avatar
Feng Yu
deepin
2016-12-16 20:57
#10
你把sudo apt update的输出贴一下,应该是你没update过吧?我看了下,你的索引应该是旧的,下载的都是旧版本的软件包,已经不存在了,报错都是404.
应该只要update一把就可以解决了。
Reply View the author
avatar
justforcon
deepin
2016-12-16 21:05
#11
https://bbs.deepin.org/post/133091
你把sudo apt update的输出贴一下,应该是你没update过吧?我看了下,你的索引应该是旧的,下载的都是旧版 ...

现在不在家  ,等下回去试试
Reply View the author
avatar
justforcon
deepin
2016-12-16 23:07
#12
https://bbs.deepin.org/post/133091
你把sudo apt update的输出贴一下,应该是你没update过吧?我看了下,你的索引应该是旧的,下载的都是旧版 ...

prompt@prompt-pc:~$ sudo apt-get update
[sudo] prompt 的密码:
命中:1 http://packages.deepin.com/deepin unstable InRelease
正在读取软件包列表... 完成  
Reply View the author
avatar
justforcon
deepin
2016-12-16 23:10
#13
这是系统截图,注意是用的官方镜像
Reply View the author
avatar
justforcon
deepin
2016-12-16 23:41
#14
感谢各位的回复与提醒,是源的问题
之前没法更新是因为我的 /etc/apt/source.list文件内容是这样的:
  1. ## Generated by deepin-installer
  2. deb [by-hash=force] http://packages.deepin.com/deepin unstable main contrib non-free
  3. #deb-src http://packages.deepin.com/deepin unstable main contrib non-free[/color]
Copy the Code


手动编辑该文件,加入中科大的源(本人在无锡,近一些),之前的源注释掉(不知道会不会有什么影响,反正可以更新了):
  1. ## Generated by deepin-installer
  2. ##deb [by-hash=force] http://packages.deepin.com/deepin unstable main contrib non-free
  3. #deb-src http://packages.deepin.com/deepin unstable main contrib non-free
  4. deb http://mirrors.ustc.edu.cn/deepin unstable main contrib non-free
Copy the Code

然后在终端运行命令:
  1. sudo apt-get update
Copy the Code

之后就可以正常安装软件或者更新系统了
Reply View the author