各种遇到问题汇总
【注意】以下为平时遇到问题汇总并解决,有些问题是几个月前遇到,更新不及时,不要误解(之前博客并不是用csdn,所以有的并没怎么转移)。
1 nvidia驱动
1.1 NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running
yum install -y kernel-devel
yum install epel-release
yum install --enablerepo=epel dkms
yum install kernel*
1.2 CentOS 7不能进入图形界面
# 联网执行这条命令后重启即可
yum upgrade
1.3 NVIDIA Driver 安装提示 mesa-libGLES 包冲突
Transaction check error:
file /usr/lib64/libEGL.so.1 from install of libglvnd-egl-1:1.0.1-0.8.git5baa1e5.el7.x86_64 conflicts with file from package mesa-libEGL-17.2.3-8.20171019.el7.x86_64
file /usr/lib64/libGLESv2.so.2 from install of libglvnd-gles-1:1.0.1-0.8.git5baa1e5.el7.x86_64 conflicts with file from package mesa-libGLES-17.2.3-8.20171019.el7.x86_64
file /usr/lib64/libGL.so.1 from install of libglvnd-glx-1:1.0.1-0.8.git5baa1e5.el7.x86_64 conflicts with file from package mesa-libGL-17.2.3-8.20171019.el7.x86_64
Error Summary
运行命令(该方法没用):sudo yum -y install kmod-nvidia
更新命令:yum update mesa-libEGL
参考链接——Centos7安装Cuda/cudnn教程
2 Centos系统
2.1 Centos yum install no package xxx availabel
yum install eple-release
yum clean all
yum makecache
3 win10
3.1 用于解决有时候不能联网问题
gpupdate /force
ipconfig /flushdns
3.2 visio2013画图时两条直线交叉让它不弯曲
在工具栏选择设计,选择连接线,在下拉菜单中,把“显示跨线”前的勾去掉
4 docker
4.1 docker容器报:IPv4 forwarding is disabled. Networking will not work
# 修改宿主机如下配置 或 vim /usr/lib/sysctl.d/00-system.conf
vim /etc/sysctl.conf
#添加如下内容 net.ipv4.ip_forward = 1
# 重启network服务
systemctl restart network
#查看是否修改成功,如果返回为“net.ipv4.ip_forward = 1”则表示成功了
sysctl net.ipv4.ip_forward
# 找到刚刚启动的容器
docker ps -a
#删除刚启动的容器,然后重新创建容器并启动即可
docker rm '之前启动的容器'