注:作为新手不要一上来就开始删除源,里面的#为注释,我们可以不考虑,我们可以对比,将我们需要的源添加进去,不要一味的删除。
1.先检查自己的网卡是否开启ens333
(自己的网卡)配置网络服务:
https://www.jianshu.com/writer#/notebooks/29755091/notes/35116790/preview
2检查DNS是否配置
cat /etc/resolv.conf //查看自己里面是否有dns
sudo vim /etc/resolv.conf
nameserver 192.168.1.1
nameserver 119.29.29.29
3.更换新的源:
https://www.jianshu.com/writer#/notebooks/29755091/notes/35802654/preview
误区
1.我们可能是在apt-get的时候打断了现在的链接,我们需要查看一下apt的进程
ps -e|grep apt-get
杀死进程 kill -9 进程id
2.apt-get install 。。。
一直失败,就先尝试一下 apt-get update
3.ifconfig
发现少了我们需要的网卡 ifconfig -a
查看所有网卡
开启和禁用网卡
# ifconfig eth0 down
# ifconfig eth0 up
4.安装软件或卸载软件时出现以下情况:
E: 无法获得锁 /var/cache/apt/archives/lock - open (11: 资源暂时不可用)
E: 无法对目录 /var/cache/apt/archives/ 加锁
强制解锁(自己试过,应该是自己其他没配置好的原因一直没达到自己想要的效果)
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
5.一个自动开启ifconfig里面不显示网卡的大佬命令
service network-manager stop
rm /var/lib/NetworkManager/NetworkManager.state
service network-manager start
解决了这么多问题都是为了解决(开启IDA动态调试)
./linux_server: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
解决方法
apt-get install lib32z1 lib32ncurses5
apt-get install lib32stdc++6
IDA动态调试参考:
https://www.52pojie.cn/thread-730499-1-1.html
注:一个笔比较发布新的源链接:
https://www.cnblogs.com/Lin-Yi/p/7072748.html
网友评论