解决StartOS软件中心的「依赖不满足,缺少软件包xxx」问题

尝试了一下StartOS,结果在软件中心的各种软件都不能安装,包括Filezilla,QQ,Aliwangwang等。。。

显示「依赖不满足,缺少软件包」,顿时想起了Ubuntu下的软件包依赖,于是尝试使用

sudo apt-get -f install

然后发现。。。。not found command,因为StartOS不是用的apt-get。。。是yget。

那么,怎么办呢?

解决StartOS软件中心的「依赖不满足,缺少软件包xxx」问题既然是因为自带的软件中心不能自动解决依赖问题(即不会自动安装所需的软件包),那么从终端下直接安装吧~

例如要安装Aliwangwang(阿里旺旺),那么他提示的是「依赖不满足,缺少软件包”aliwangwang”,那么,打开终端,键入如下命令:

sudo yget –install aliwangwang

可以看到运行如下:

Tuccuay@Tuccuay-desktop:~$ sudo yget –install aliwangwang
Install: aliwangwang
Auto-install: libfbclient qt-core
Do you want to continue [Y/n]?
Installing libfbclient …
Downloading http://pkg.startos.org/packages//l/libfbclient/stable/libfbclient_2.5.1.26351-i686.ypk to /var/ypkg/packages/
[====================>] 1.62MB/1.62MB[100%] 6KB/s
Installing /var/ypkg/packages/libfbclient_2.5.1.26351-i686.ypk
Checking dependency tree… done
Reading package information… done
Executing pre_install script
… done
Copying files… done
Updating database… done
Executing post_install script
… done
Installation successful.
Installing qt-core …
Downloading http://pkg.startos.org/packages//q/qt-core/stable/qt-core_4.8.2-r2-i686.ypk to /var/ypkg/packages/
[====================>] 26.63MB/26.63MB[100%] 10KB/s
Installing /var/ypkg/packages/qt-core_4.8.2-r2-i686.ypk
Checking dependency tree… done
Reading package information… done
Executing pre_install script
… done
Copying files… done
Updating database… done
Executing post_install script
… Updating icons cache: /usr/share/icons/hicolor
incorrect gamma=(0/100000)
incorrect gamma=(0/100000)
Updating desktop database …
Warning in file “/usr/share/applications/nautilus-folder-handler.desktop”: usage of MIME type “x-directory/gnome-default-handler” is discouraged (“x-directory” is an old media type that should be replaced with a modern equivalent)
Warning in file “/usr/share/applications/nautilus-folder-handler.desktop”: usage of MIME type “x-directory/normal” is discouraged (“x-directory” is an old media type that should be replaced with a modern equivalent)
done
Installation successful.
Installing aliwangwang …
Downloading http://pkg.startos.org/packages//a/aliwangwang/stable/aliwangwang_1.0-i686.ypk to /var/ypkg/packages/
[====================>] 2.56MB/2.56MB[100%] 34KB/s
Installing /var/ypkg/packages/aliwangwang_1.0-i686.ypk
Checking dependency tree… done
Reading package information… done
Executing pre_install script
… done
Copying files… done
Updating database… done
Executing post_install script
… Updating desktop database …
Warning in file “/usr/share/applications/nautilus-folder-handler.desktop”: usage of MIME type “x-directory/gnome-default-handler” is discouraged (“x-directory” is an old media type that should be replaced with a modern equivalent)
Warning in file “/usr/share/applications/nautilus-folder-handler.desktop”: usage of MIME type “x-directory/normal” is discouraged (“x-directory” is an old media type that should be replaced with a modern equivalent)
done
Installation successful.
Tuccuay@Tuccuay-desktop:~$

我们可以看到,先安装了libfbclient和qt-core两个包,然后就正常安装了~Installation successful~