LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1060|回复: 4

除了apt-get aptitude 还有其它的安装软件工具吗?

[复制链接]
发表于 2011-1-10 18:47:19 | 显示全部楼层 |阅读模式
此问的原因是删除了apt-get  aptitude .寻求解决方法。
尝试安装debootstsrap,可以有apt-get,但可能与正式的不同,无法
apt-get  -f install apt-get
。。。。。

Building dependency tree      
Reading state information... Done
E: Unable to locate package atp-get

apt-get -f install aptitude  


想安装gcc,但解决不了依赖问题
root@bookhost:/home/wu# apt-get  install gcc
Reading package lists... Done
Building dependency tree      
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
gcc : Depends: cpp (>= 4:4.4.5-1) but it is not going to be installed
       Depends: gcc-4.4 (>= 4.4.5-1~) but it is not going to be installed
       Recommends: libc6-dev but it is not going to be installed or
                   libc-dev
libgcc1 : Depends: libc6 (>= 2.2.4) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@bookhost:/home/wu#
发表于 2011-1-10 21:08:16 | 显示全部楼层
自动安装的好像没有了,要么只有下载deb包下来用dpkg来手动安装了
回复 支持 反对

使用道具 举报

发表于 2011-1-10 21:42:37 | 显示全部楼层
试下tasksel可以不
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-1-10 23:29:38 | 显示全部楼层
!)将debootstrap 按照
http://www.debian.org/releases/t ... html.zh_CN#id536457
介绍的:
/usr/sbin/debootstrap --arch ARCH squeeze      /mnt/debinst http://ftp.us.debian.org/debia/

其中/mnt/debinst是指向/的符号链接。由于该连接是指向自我,上述会错误终止,不过此时,已经安装了一个apt-get,修改/etc/apt/sources.lis,使其是正常的源,
更新源后,重新安装tasksel tasksel-data,aptitude 最后安装apt-get
回复 支持 反对

使用道具 举报

发表于 2011-1-16 12:51:42 | 显示全部楼层
你需要运行apt-get -f install来修正系统当前的错误.
apt-get 是一个base包, 不大可能被删除
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表