软件中心打不开!不能升级!
Tofloor
poster avatar
lyuranus
deepin
2013-05-17 19:27
Author
linux deepin系统的软件中心打不开了,刚开机的时候还能,提示有40个软件需要升级,但是升级一会之后没有反应,但是再也打不开软件中心了,用命令升级也不能成功了,我已经将软件源换成测试源了!求老大帮忙!
Reply Favorite View the author
All Replies
lihongwu
deepin
2013-05-17 19:31
#1
用命令升级也不能成功了
把用命令升级的报错贴出来。
Reply View the author
lyuranus
deepin
2013-05-17 19:40
#2
QQ截图20130517110030.png
Reply View the author
pynnthl
deepin
2013-05-17 20:22
#3
我的昨天命令行升级后  软件中心  就打不开了,现在命令行没问题。想缷载软件都没办法。
Reply View the author
BingoLove
deepin
2013-05-18 07:28
#4
我的昨天命令行升级后  软件中心  就打不开了,现在命令行没问题。想缷载软件都没办法。
用命令卸载吧,反正我一般都是命令行安装和卸载软件,
Reply View the author
hjli1988
deepin
2013-05-18 18:37
#5
我的升级后也打不开,在终端输入deepin-software-center命令显示如下:

data init
function get got error: No section: 'newest'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deepin_utils/config.py", line 96, in get
    return self.config_parser.get(section, option)
  File "/usr/lib/python2.7/ConfigParser.py", line 330, in get
    raise NoSectionError(section)
NoSectionError: No section: 'newest'
Traceback (most recent call last):
  File "/usr/bin/deepin-software-center", line 23, in
    from software_center import DeepinSoftwareCenter
  File "/usr/share/deepin-software-center/ui/software_center.py", line 28, in
    from icon_window import IconWindow
  File "/usr/share/deepin-software-center/ui/icon_window.py", line 27, in
    from item_render import get_icon_pixbuf_path
  File "/usr/share/deepin-software-center/ui/item_render.py", line 27, in
    from constant import ICON_DIR
  File "/usr/share/deepin-software-center/ui/constant.py", line 35, in
    ICON_DIR = os.path.join(get_parent_dir(__file__, 2), "data", "update", DATA_ID, "app_icon")
  File "/usr/lib/python2.7/posixpath.py", line 66, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'
Reply View the author
huminhang
deepin
2013-05-18 19:53
#6
我也是来找解决办法的。。。。郁闷
Reply View the author
zhoupinglu
deepin
2013-05-19 03:10
#7
一样问题, test 源升级后,软件中心打不开了。
Reply View the author
electricface
deepin
2013-05-19 05:39
#8
先卸载软件中心
,然后从测试源安装最新的软件中心
  1. sudo apt-get autoremove deepin-software-center
  2. sudo apt-get update
  3. sudo apt-get install deepin-software-center
Copy the Code
之后再执行命令
  1. sudo mkdir /usr/share/deepin-software-center/mirrors
  2. gksu gvim mirror-test.ini
Copy the Code
在mirror-test.ini文件中写入:
  1. [mirror]
  2. name = 官方测试
  3. url = http://test.packages.linuxdeepin.com/deepin
Copy the Code
[color=#FF0000:3eqpyrzc]注意root下不能使用输入法,只能复制粘贴了[/color:3eqpyrzc]
保存之后就可以单击软件中心的图标启动了
Reply View the author
electricface
deepin
2013-05-19 18:33
#9
如果想要更多的源就在mirrors文件夹下创建更多的 mirror-XXX.ini 文件
比如[color=#FF4000:2vm3u04m]劝大家不要在软件中心随便切换源,每次切换都有apt-get update 的巨大的更新动作,这是设计缺陷[/color:2vm3u04m]

mirror-official-stable.ini
  1. [mirror]
  2. name=官方稳定
  3. url=http://packages.linuxdeepin.com/deepin
Copy the Code
mirror-oss.ini
  1. [mirror]
  2. name=开源中国网
  3. url=http://mirrors.oss.org.cn/deepin
Copy the Code

mirror-bitedu.ini
  1. [mirror]
  2. name=北京理工大
  3. url=http://mirror.bit.edu.cn/deepin/
Copy the Code


mirror-souhu.ini
  1. [mirror]
  2. name=搜狐
  3. url=http://mirror.sohu.com/deepin/
Copy the Code
mirror-zju.ini
  1. [mirror]
  2. name=浙江大学
  3. url=http://mirrors.zju.edu.cn/deepin/
Copy the Code
mirror-xmu.ini
  1. [mirror]
  2. name=厦门大学
  3. url=http://mirrors.xmu.edu.cn/deepin/deepin/
Copy the Code
mirror-lzu.ini
  1. [mirror]
  2. name=兰州大学
  3. url=http://mirror.lzu.edu.cn/deepin/
Copy the Code
Reply View the author
cxbii
deepin
2013-05-19 19:14
#10
sudo apt-get update
这个操作并不算个会大量耗时的操作吧?

如果默认源速度很好,那就推荐使用默认源,默认源始终是更新速度最快的源,其他的源都是同步默认源的
Reply View the author
electricface
deepin
2013-05-19 19:21
#11
sudo apt-get update
这个操作并不算个会大量耗时的操作吧?

如果默认源速度很好,那就推荐使用默认源,默认源始终是更新速度最快的源,其他的源都是同步默认源的
如果那个源访问速度慢呢,我还有很多其他的比较慢的源呢.而且我一单击就会执行更新,这明显是问题.
Reply View the author
cxbii
deepin
2013-05-19 19:23
#12
如果那个源访问速度慢呢,我还有很多其他的比较慢的源呢.而且我一单击就会执行更新,这明显是问题.
如果源速度慢当然是例外了.
一般情况下,默认源的速度还是可以的,我不知道你那网速如何,我现在的是4M,刷新源大约4到5秒.
Reply View the author
BingoLove
deepin
2013-05-20 01:19
#13
先卸载软件中心
,然后从测试源安装最新的软件中心
  1. sudo apt-get autoremove deepin-software-center
  2. sudo apt-get update
  3. sudo apt-get install deepin-software-center
Copy the Code
之后再执行命令
  1. sudo mkdir /usr/share/deepin-software-center/mirrors
  2. gksu gvim mirror-test.ini
Copy the Code
在mirror-test.ini文件中写入,注意root下不能使用输入法,只能复制粘贴了
[quote][miror]
name = 官方测试
url = http://test.packages.linuxdeepin.com/deepin

保存之后就可以单击软件中心的图标启动了
为啥官方可以这么不尊重用户,这么简单的问题(其实可以把这些都写在代码里的,比如mirrors文件夹下找不到文件,找不到mirrors文件夹,都可以写上挽救方法的).但是可以导致用户启动不了软件中心,没法装软件.[/quote]

写错了,应该是
  1. [mirror]
  2. name = 官方测试
  3. url = http://test.packages.linuxdeepin.com/deepin
Copy the Code
Reply View the author