因為之前套件的關係,移除了 /var/lib/dpkg/info
因為某個套件編不過,所以想說整個重新更新~
但啟知慘劇開始..........
在 /var/log/apt/term.log 中 開始大量出現...
dpkg: warning: files list file for package 'transmission-remote-cli' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libblas3' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libraspberrypi-bin' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python-debian' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'strace' missing; assuming package has no files currently installed
....
為了解決,所以重新裝套件。
# cat term.log|grep warning|cut -d " " -f 8 | sort | uniq | tr -d \' > /tmp/file
# apt-get install --reinstall $( cat /tmp/file)
發現裝到 libc6時又出問題
所以把下面這幾個檔案移到/tmp
libdl-2.13.so
libc-2.13.so
libm-2.13.so
libpthread-2.13.so
librt-2.13.so
搞笑了...一堆指令都無法使用
所以只好上網查了一下
# LD_PRELOAD=/tmp/libc-2.13.so ln -s /tmp/libc-2.13.so /lib/libc.so.6
# LD_PRELOAD=/tmp/libc-2.13.so ln -s /tmp/librt-2.13.so /lib/librt.so.1
# LD_PRELOAD=/tmp/libc-2.13.so ln -s /tmp/libdl-2.13.so /lib/libdl.so.2
# LD_PRELOAD=/tmp/libc-2.13.so ln -s /tmp/libpthread-2.13.so /lib/libpthread.so.0
# ldconfig
# cp /tmp/*-2.13.so /lib
# ldconfig
呼........差點心臟停了!!!
另外好像也可以這樣
# LD_PRELOAD=/tmp/libc-2.13.so rm /lib/libc-2.13.so
沒有留言:
張貼留言