大家注意,以前的安装脚本存在bug,会导致top等部分系统程序无法运行,以及套间无法安装,已经解决,请使用新的版本,目前仅在6.22上测试,切忌不要在实际使用的群晖上直接使用,一定在虚拟机下测试通过或者取下数据盘做好重装系统的准备 新的run.sh #/bin/ash rm /bin mkdir /bin cp /usr/bin/* /bin/ mkdir ./binback cp /usr/bin/* ./binback/ tar -xvjf ./package.tar.bz2 cp ./package/bin/* /bin/ chmod +x /bin/dpkg chmod +x /bin/ldconfig chmod +x /bin/ldconfig.real chmod +x /bin/start-stop-daemon chmod +x /bin/add-shell chmod +x /bin/update-rc.d chmod +x /bin/which chmod +x /bin/getent cp ./package/lib/* /usr/lib/ dpkg -i --no-debsig --force-all ./package/deb/* cp ./package/source/sources.list /etc/apt/ apt-get update cp /etc/dpkg/dpkg.cfg /etc/dpkg/dpkg.cfg.old echo "no-debsig" >> /etc/dpkg/dpkg.cfg apt-get -f -y install echo "utmp:x:43:" >>/etc/group echo "mail:x:8:" >>/etc/group chmod 4755 /bin/sudo chmod 4755 /bin/rsync chmod 4755 /bin/fusermount chmod 4755 /bin/scriptindex ln -s -b /lib/ld-2.20-2014.11.so /lib/ld-linux-x86-64.so.2 cp /lib/x86_64-linux-gnu/libacl.so.1 /lib/ cp /lib/x86_64-linux-gnu/libapt-p* /lib/ 请把原来的run.sh的内容修改为以上内容 在使用apt安装gcc以及其他程序后,可能出现 /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1: error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory等类似错误,原因是apt安装的lib文件在/lib/x86_64-linux-gnu/下,我们根据提示的错误是缺少libmpc.so.3文件,因此手动执行命令 cp /lib/x86_64-linux-gnu/libmpc.so.3 /lib/ 如此反复,直到所有lib文件均被复制过来,即可正常执行 如: root@DS918Plus:~# gcc hello.c -o hello /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1: error while loading shared libraries: libcloog-isl.so.4: cannot open shared object file: No such file or directory root@DS918Plus:~# cp /lib/x86_64-linux-gnu/libcloog-isl.so.4 /lib/ root@DS918Plus:~# gcc hello.c -o hello /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1: error while loading shared libraries: libisl.so.10: cannot open shared object file: No such file or directory root@DS918Plus:~# cp /lib/x86_64-linux-gnu/libisl.so.10 /lib/ root@DS918Plus:~# gcc hello.c -o hello /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1: error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory root@DS918Plus:~# cp /lib/x86_64-linux-gnu/libmpc.so.3 /lib/ root@DS918Plus:~# gcc hello.c -o hello hello.c: In function ‘main’: hello.c:3:1: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default] printf("hello \n"); ^ root@DS918Plus:~# ./hello hello root@DS918Plus:~# 补充内容 (2020-2-22 23:10): 测试的是6.21,6.22我没有系统弄,有机会会更新的 |
谢谢分享! |
大佬,谢谢分享,先尝试一下看行不行 |
试试看!!!!!!!!!! |
谢谢大佬,感谢分享!!!! |
cp ./package/lib/* /usr/lib/ dpkg -i --no-debsig --force-all ./package/deb/* cp ./package/source/sources.list /etc/apt/ apt-get update cp /etc/dpkg/dpkg.cfg /etc/dpkg/dpkg.cfg.old |
感谢大佬............. |
关于群辉docker更换apt源的相关内容 |
虚拟机试一下,学习学习 |
需要用到 学习一下看看 |