因為之前套件的關係,移除了 /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
搜尋此網誌
2013年3月19日 星期二
2013年3月1日 星期五
subprocess installed post-installation script returned error exit status 1
update-rc.d: error: insserv rejected the script header
dpkg: error processing transmission-daemon (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
transmission-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)
找了一下...
#cd /var/lib/dpkg/info
#rm -fr transmission-daemon*
#apt-get autoclean; apt-get autoremove; apt-get update; apt-get upgrade
收工...
dpkg: error processing transmission-daemon (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
transmission-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)
找了一下...
#cd /var/lib/dpkg/info
#rm -fr transmission-daemon*
#apt-get autoclean; apt-get autoremove; apt-get update; apt-get upgrade
收工...
2013年2月10日 星期日
Raspberry PI 設定紀錄
raspberry pi到貨了...紀錄一下這次的安裝過程
1. 到 http://www.raspberrypi.org/downloads 下載發行版本
2. 下載( 2013-09-25-wheezy-raspbian.zip) http://downloads.raspberrypi.org/raspbian_latest
old:http://downloads.raspberrypi.org/images/raspbian/2012-12-16-wheezy-raspbian/2012-12-16-wheezy-raspbian.zip
3. 因為沒有讀卡機,所以只好用EPC來燒錄SD卡,再下載 https://launchpad.net/win32-image-writer/+download
4. 解開2012-12-16-wheezy-raspbian.zip 再用Win32DiskImager燒錄到SD卡上
5. 把燒完的SD卡插到raspberry上,該接的網路線、鍵盤、HDMI等接好,最後插上micro usb電源
初步準備
1. 到 http://www.raspberrypi.org/downloads 下載發行版本
2. 下載( 2013-09-25-wheezy-raspbian.zip) http://downloads.raspberrypi.org/raspbian_latest
3. 因為沒有讀卡機,所以只好用EPC來燒錄SD卡,再下載 https://launchpad.net/win32-image-writer/+download
4. 解開2012-12-16-wheezy-raspbian.zip 再用Win32DiskImager燒錄到SD卡上
5. 把燒完的SD卡插到raspberry上,該接的網路線、鍵盤、HDMI等接好,最後插上micro usb電源
2012年8月23日 星期四
2011年11月6日 星期日
在asus的RT-N16上面更新tomato
之前的FON刷過DD-WRT...最近怪怪的,所以買了一台新的機器...RT-N16
GOOGLE了一下,大家都是刷第三方的韌體,所以目標鎖定刷tomato...
無奈資質駑鈍,參考:http://www.xiang.idv.tw/?p=975 好久,一直卡在第四步。
心一橫,先參考:http://dd-wrt.ca/wiki/index.php/Asus_RT-N16
1. 下載 ftp://dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2010/08-12-10-r14929/broadcom_K26/dd-wrt.v24-14929_NEWD-2_K2.6_mini_RT-N16.trx
2. 再用asus的韌體更新程式直接更新,更新完成之後網頁連線會斷線,重新整理之後會出現一個要你輸入預設帳號、預設密碼的地方,直接設定完成之後可以切到進階,準備更新TOMATO
3. 根據dd-wrt的說法,做了這一步 http://www.dd-wrt.com/wiki/index.php/Hard_reset_or_30/30/30
4. 到 http://code.google.com/p/twtomato/downloads/detail?name=tomato-K26USB-1.28.7428MIPSR2-Toastman-VPN.trx&can=2&q= 下載TOMATO韌體
或到 https://www.dropbox.com/s/ua2m59q3j6qhdhu 下載
5. 利用dd-wrt來升級,等個五分鐘後,打開瀏覽器 HTTP://192.168.1.1 應該已經完成更新了
6. 參考
http://digiland.tw/viewtopic.php?id=1324
http://blog.xuite.net/cuteman/blog/52568633
http://blog.yam.com/ryankids2001/article/41727003
GOOGLE了一下,大家都是刷第三方的韌體,所以目標鎖定刷tomato...
無奈資質駑鈍,參考:http://www.xiang.idv.tw/?p=975 好久,一直卡在第四步。
心一橫,先參考:http://dd-wrt.ca/wiki/index.php/Asus_RT-N16
1. 下載 ftp://dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2010/08-12-10-r14929/broadcom_K26/dd-wrt.v24-14929_NEWD-2_K2.6_mini_RT-N16.trx
2. 再用asus的韌體更新程式直接更新,更新完成之後網頁連線會斷線,重新整理之後會出現一個要你輸入預設帳號、預設密碼的地方,直接設定完成之後可以切到進階,準備更新TOMATO
3. 根據dd-wrt的說法,做了這一步 http://www.dd-wrt.com/wiki/index.php/Hard_reset_or_30/30/30
4. 到 http://code.google.com/p/twtomato/downloads/detail?name=tomato-K26USB-1.28.7428MIPSR2-Toastman-VPN.trx&can=2&q= 下載TOMATO韌體
或到 https://www.dropbox.com/s/ua2m59q3j6qhdhu 下載
5. 利用dd-wrt來升級,等個五分鐘後,打開瀏覽器 HTTP://192.168.1.1 應該已經完成更新了
6. 參考
http://digiland.tw/viewtopic.php?id=1324
http://blog.xuite.net/cuteman/blog/52568633
http://blog.yam.com/ryankids2001/article/41727003
2010年12月4日 星期六
EPC-1000HD 重灌紀錄
幾天前升級squeeze後不知道砍到那個套件,結果X視窗整個掛掉。
加上桌機的9800gx2也過熱掛掉送修,等買新的gtx460回來才有時間重新製作一隻開機用usb stick。
原本用的adata 2g那隻usb怪怪的...用linkstation那台debian怎麼製作怎麼失敗(也該送修了)!
換了一隻pqi 2g的還是一樣,後來想說用再xp下用syslinux、unetbootin製作看看,都還是失敗,一直找不到光碟。
最後是這樣搞定的安裝用USB Stick
參考網頁:
http://wiki.debian.org/DebianEeePC/HowTo/InstallUsingStandardInstaller
http://wiki.debian.org/kotej
http://wiki.debian.org.tw/index.php/DFB
http://wiki.lxde.org/zh/Debian
http://forum.lxde.org/viewtopic.php?f=10&t=16
http://lxde.org/download
http://www.benjr.tw/?q=node/86
加上桌機的9800gx2也過熱掛掉送修,等買新的gtx460回來才有時間重新製作一隻開機用usb stick。
原本用的adata 2g那隻usb怪怪的...用linkstation那台debian怎麼製作怎麼失敗(也該送修了)!
換了一隻pqi 2g的還是一樣,後來想說用再xp下用syslinux、unetbootin製作看看,都還是失敗,一直找不到光碟。
最後是這樣搞定的安裝用USB Stick
參考網頁:
http://wiki.debian.org/DebianEeePC/HowTo/InstallUsingStandardInstaller
http://wiki.debian.org/kotej
http://wiki.debian.org.tw/index.php/DFB
http://wiki.lxde.org/zh/Debian
http://forum.lxde.org/viewtopic.php?f=10&t=16
http://lxde.org/download
http://www.benjr.tw/?q=node/86
2010年8月20日 星期五
Debian lenny --> squeeze
原本想把epc上的lenny升級到squeeze
但是!
#apt-get update;apt-get upgrade
失敗了~~~沒注意到那裡的問題
重開之後卡在GNOME的login畫面,也無法切到console端
所以...開啟了epc營救計畫
但是!
#apt-get update;apt-get upgrade
失敗了~~~沒注意到那裡的問題
重開之後卡在GNOME的login畫面,也無法切到console端
所以...開啟了epc營救計畫
訂閱:
文章 (Atom)