apt-get 出現 “subprocess installed post-installation script returned error exit status 1″

如果 apt-get 出現 “subprocess installed post-installation script returned error exit status 1″ 的錯誤

dpkg: error processing util-linux (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)

進到 /var/lib/dpkg/info 目錄

將卡住的套件檔案刪掉即可

apt-get autoclean
apt-get autoremove
apt-get update
apt-get upgrade

廣告

apt-mirror : "apt-mirror is already running, exiting at /usr/bin/apt-mirror line 187"

如果執行 apt-mirror 出現這個錯誤

“apt-mirror is already running, exiting at /usr/bin/apt-mirror line 187″

通常是 apt-mirror 不正常結束所造成

請先檢查你的 base_path 在哪

base_path = /home/apt-mirror

則 /home/apt-mirror/var/apt-mirror.lock 刪掉
再重新執行 apt-mirror 即可

Ubuntu 影音安裝 list

整理 Ubuntu 下要使用影音的軟體清單

apt-get install gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg

How to userspace l7 filter on Ubuntu

How to userspace l7 filter on Ubuntu
http://kuscsik.blogspot.com/2008/02/how-to-userspace-l7-filter-on-ubuntu.html

測試中~~~

build squid3 on Ubuntu

apt-get update
apt-get install devscripts build-essential
apt-get source squid3
apt-get build-dep squid3
cd squid3-“version"
nano debian/rules # or whatever editor you use
add the –enable-icap-client line among the other –enable-blah- lines
debuild -us -uc
cd ..
dpkg -i your_built_package.deb

Ubuntu mirror.list – good example

個人覺得這樣寫比較好啦
deb-i386 就只抓 i386 這樣比較節省空間
我們公司兩者都有 所以兩者都寫

############# config ##################
#
#set base_path /var/spool/apt-mirror
set base_path /home/apt-mirror
#
# if you change the base path you must create the directories below with write privlages
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch
set nthreads 2
set _tilde 0
#
############# end config ##############

# Ubuntu 8.04 “Hardy" amd64
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse

# Ubuntu 8.04 “Hardy" amd64 netboot installer support
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy main main/debian-installer
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy restricted restricted/debian-installer
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy universe universe/debian-installer
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy multiverse multiverse/debian-installer

# Ubuntu 8.04 “Hardy" i386
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse

# Ubuntu 8.04 “Hardy" i386 netboot installer support
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy main main/debian-installer
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy restricted restricted/debian-installer
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy universe universe/debian-installer
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy multiverse multiverse/debian-installer

clean http://tw.archive.ubuntu.com/ubuntu

顯示 Ubuntu Disk UUID

ls -cl /dev/disk/by uuid

快速重裝ubuntu

####快速重裝ubuntu####

dpkg –get-selections | grep -v deinstall > ubuntu.files #得到已安裝軟件列表文件

下次重裝ubuntu 的時候,執行

dpkg –set-selections < ubuntu.files

apt-get install nfs-common

apt-get install nfs-kernel-server

vi /etc/exports

app/nfs 192.168.1.6(ro)

/etc/init.d/nfs-kernel-server start

Installation Checklist

Post installation checklist for Ubuntu Hardy Heron 8.04
http://ubuntuforums.org/showthread.php?t=803897

amd64 lib32 problem on ubuntu

研究如何在 amd64 跑 lib32 程式

以下只是搜尋出來的解法 待證實中

test1:
apt-install ia32-libs, ia32-libs-gtk, and lib32asound2

test2:
http://ubuntuforums.org/archive/index.php/t-86415.html
http://ubuntuforums.org/showthread.php?t=24575