centos7.6 安装Tomcat-8.5.39的方法
通过apt-get install *** 时遇到问题“could not exec dpkg!”,经过多方搜索,最后终于解决了,整理如下:
1、mkdir /tmp/dpkg
cd tmp/dpkg
wget http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.17.5ubuntu5.6_i386.deb (32位系统) 或:
wget http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.17.5ubuntu5.6_amd64.deb(64 bit os)
ar x dpkg*.deb data.tar.gz
tar xfvz data.tar.gz
sudo cp ./usr/bin/dpkg /usr/bin/
sudo apt-get install update
sudo apt-get install --reinstall dpkg
2、then it works!
参考url:http://ubuntuforums.org/showthread.php?t=1516119
https://answers.launchpad.net/ubuntu/+source/apt/+question/177908
精彩评论