mv /var/lib/dpkg/info /var/lib/dpkg/info.tmp
mkdir /var/lib/dpkg/info
apt-get update
apt-get -f install
rm -rf /var/lib/dpkg/info
mv /var/lib/dpkg/info.tmp /var/lib/dpkg/info
2021年5月30日 星期日
Debian apt upgrade 錯誤 E: Sub-process /usr/bin/dpkg returned an error code (1)
Linux Squashfs 相關套件
yum -y install squashfuse squashfs-tools
apt -y install squashfuse squashfs-tools
LXC可以使用 squashfuse 掛載
PLINK107 安裝
!/bin/bash
# install PLINK 1.07
# https://zzz.bwh.harvard.edu/plink/download.shtml
src=https://zzz.bwh.harvard.edu/plink/dist/plink-1.07-x86_64.zip
target=/opt/PLINK107
[ $(which busybox) ]&& { for i in wget unzip;do [ -f "/usr/local/bin/${i}" ] || ln -s $(which busybox) /usr/local/bin/${i}; done; };
for i in unzip wget;do [ $(which ${i}) ]&& : || { echo check ${i}: not found ${i}! &&exit 1; } ;done;
[ -d "$target" ]&&mv ${target} ${target}.$(date +%Y-%m-%d-%H-%M);
mkdir -p $target;cd $target;
echo $target >readme.txt;echo $src >>readme.txt
wget -q -O- $src | unzip -;
chmod a+x plink;cd -;
for i in plink;do [ -f "/usr/local/bin/${i}" ]&&mv /usr/local/bin/${i} /usr/local/bin/${i}.$(date +%Y-%m-%d-%H-%M); ln -s ${target}/${i} /usr/local/bin/${i}07;done;
PLINK 1.90 安裝
!/bin/bash
# install PLINK 1.90 beta
#https://www.cog-genomics.org/plink/
src=https://s3.amazonaws.com/plink1-assets/plink_linux_x86_64_20210606.zip
target=/opt/PLINK190b
[ $(which busybox) ]&& { for i in wget unzip;do [ -f "/usr/local/bin/${i}" ] || ln -s $(which busybox) /usr/local/bin/${i}; done; };
for i in unzip wget;do [ $(which ${i}) ]&& : || { echo check ${i}: not found ${i}! &&exit 1; } ;done;
[ -d "$target" ]&&mv ${target} ${target}.$(date +%Y-%m-%d-%H-%M);
mkdir -p $target;cd $target;
echo $target >readme.txt;echo $src >>readme.txt
wget -q -O- $src | unzip -;
chmod a+x plink;cd -;
for i in plink;do [ -f "/usr/local/bin/${i}" ]&&mv /usr/local/bin/${i} /usr/local/bin/${i}.$(date +%Y-%m-%d-%H-%M); ln -s ${target}/${i} /usr/local/bin/${i};done;