archlinux 恢复[原]

今天升级因为下载太慢,就随手输入 pacman -S glibc 结果只升级了GLIBC,其他的没升级,后果就是 ls 都段错误,关机都没办法关了。
试着用 grub4dos 引导ISO进archlinux 2009.08的ISO,结果没挂上我的lvm分区,
(好像是没有 modprobe dm-mod 的原因,
vgscan
vgchange -ay
提示没有device-mapper驱动
因为现在启动到GENTOO下了,先不管了)
重启进入到GENTOO下面,想到之前老焦的archlive里有pacman.static 命令,就将就试一下吧./pacman.static -r /media/archlinux/ --config /media/archlinux/etc/pacman.conf --cachedir /media/archlinux/var/cache/pacman/pkg/ -Su

一运行就发现有搞头,正在更新包
更新完后试着 sudo chroot /media/archlinux  /bin/bash 出现段错误,看来没搞头

多半是这次的glibc有问题,然后试着降级GLIBC,再安装,果然OK了

[axlrose@ibmgentoo media] $ sudo ./pacman.static -r /media/archlinux/ --config /media/archlinux/etc/pacman.conf --cachedir /media/archlinux/var/cache/pacman/pkg/ -U /media/archlinux/var/cache/pacman/pkg/glibc-2.10.1-5-i686.pkg.tar.gz
loading package data...
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: binutils: requires glibc>=2.11
[axlrose@ibmgentoo media] $ sudo ./pacman.static -r /media/archlinux/ --config /media/archlinux/etc/pacman.conf --cachedir /media/archlinux/var/cache/pacman/pkg/ -U /media/archlinux/var/cache/pacman/pkg/binutils-
binutils-2.20-1-i686.pkg.tar.gz           binutils-native-2.19.1-2-i686.pkg.tar.gz
binutils-2.20-2-i686.pkg.tar.gz
[axlrose@ibmgentoo media] $ sudo ./pacman.static -r /media/archlinux/ --config /media/archlinux/etc/pacman.conf --cachedir /media/archlinux/var/cache/pacman/pkg/ -U /media/archlinux/var/cache/pacman/pkg/binutils-2.20-
binutils-2.20-1-i686.pkg.tar.gz  binutils-2.20-2-i686.pkg.tar.gz
[axlrose@ibmgentoo media] $ sudo ./pacman.static -r /media/archlinux/ --config /media/archlinux/etc/pacman.conf --cachedir /media/archlinux/var/cache/pacman/pkg/ -U /media/archlinux/var/cache/pacman/pkg/binutils-2.20-1-i686.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts                   [##################################################################] 100%
(1/1) upgrading binutils                            [##################################################################] 100%
[axlrose@ibmgentoo media] $ sudo ./pacman.static -r /media/archlinux/ --config /media/archlinux/etc/pacman.conf --cachedir /media/archlinux/var/cache/pacman/pkg/ -U /media/archlinux/var/cache/pacman/pkg/glibc-2.10.1-5-i686.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts                   [##################################################################] 100%
(1/1) upgrading glibc                               [##################################################################] 100%
warning: /media/archlinux/etc/locale.gen installed as /media/archlinux/etc/locale.gen.pacnew
Generating locales...
en_US.UTF-8... done
en_US.ISO-8859-1... done
zh_CN.GB18030... done
zh_CN.GBK... done







<GunsNRose> [arch@myarchtp ~] $ sudo pacman -Sf glibc
<GunsNRose> 正在解决依赖关系...
<GunsNRose> 正在查找内部冲突...
<GunsNRose> 目标 (1): glibc-2.11-1
<GunsNRose> 全部下载大小: 11.46 MB
<GunsNRose> 全部安装大小: 31.59 MB
<GunsNRose> 进行安装吗? [Y/n] y
<GunsNRose> :: 正在从 core 软件仓库获取软件包...
<GunsNRose> --2009-11-11 20:47:10-- ftp://ftp.archlinux.org/core/os/i686/glibc-2.11-1-i686.pkg.tar.gz
<GunsNRose> => “/var/cache/pacman/pkg/glibc-2.11-1-i686.pkg.tar.gz.part”
<GunsNRose> 正在解析主机 ftp.archlinux.org... 209.85.41.144, 209.85.41.143
<GunsNRose> 正在连接 ftp.archlinux.org|209.85.41.144|:21... 已连接。
<GunsNRose> 正在以 anonymous 登录 ... 登录成功!
<GunsNRose> ==> SYST ... 完成。 ==> PWD ... 完成。
<GunsNRose> ==> TYPE I ... 完成。 ==> CWD (1) /core/os/i686 ... 完成。
<GunsNRose> ==> SIZE glibc-2.11-1-i686.pkg.tar.gz ... 12020826
<GunsNRose> ==> PASV ... 完成。 ==> RETR glibc-2.11-1-i686.pkg.tar.gz ... 完成。
<GunsNRose> 长度:12020826 (11M) (非正式数据)
<GunsNRose> 100%[==================================================================================>] 12,020,826 44.3K/s in 4m 7s
<GunsNRose> 2009-11-11 20:51:21 (47.5 KB/s) - “/var/cache/pacman/pkg/glibc-2.11-1-i686.pkg.tar.gz.part” 已保存 [12020826]
<GunsNRose> 正在检查软件包完整性...
<GunsNRose> 警告:/etc/locale.gen 已安装为 /etc/locale.gen.pacnew
<GunsNRose> (1/1) 正在更新 glibc [#################################################################] 100%
<GunsNRose> [arch@myarchtp ~] $ ls
<GunsNRose> 段错误
<zhong> 汗...
<GunsNRose> [arch@myarchtp ~] $ clear
<GunsNRose> 段错误
<GunsNRose> [arch@myarchtp ~] $ man
<GunsNRose> 段错误
<GunsNRose> [arch@myarchtp ~] $ ls
<GunsNRose> 段错误
<GunsNRose> [arch@myarchtp ~] $ dir


[arch@myarchtp ~] $ clear
段错误
[arch@myarchtp ~] $ pacman -Si pacman
段错误
[arch@myarchtp ~] $ sudo pacman -Qi glibc
段错误
[arch@myarc

<GunsNRose> 段错误

你可能感兴趣的:(#archlinux)