P & Q

1 篇文章 0 订阅
1 篇文章 0 订阅
fatal: could not create work tree dir 'ml': Permission denied

$ cd …
$ sudo chmod o+w dirname
PS:sudo chmod o+w /opt/ml
ml为存放代码的文件夹

fatal: unable to access 'https://github.com/ml/ml.git/': SSL connection timeout 
fatal: unable to access 'https://github.com/ml/ml.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.

1.权限原因:sudo git clone https://github.com/ml/ml.git
2.VPN原因:本地开启之后,GIT没有设置代理,无法越过GFW
2.网络原因:git clone http://github.com/ml/ml.git 或 git clone git://github.com/ml/ml.git

补充:对于需要使用VPN进行访问或使用GIT访问速度慢的问题,可通过配置代理进行缓解。
代理设置会对.gitconfig文件添加配置,文件存在于C盘(一般)用户目录中,对于端口,可通过搜索 Internet 查看。

在这里插入图片描述

代理地址和端口参照IP地址和IP端口,IP地址连接Internet,IP端口作为通信端口,能够进行识别特定的进程或者网络服务。理解上可参照内存地址的间接引用。

代理设置:
git config --global http.proxy http://127.0.0.1:1080
git config --global http.proxy https://127.0.0.1:1080
git config --global http.proxy ‘socks5://127.0.0.1:1080’
git config --global http.proxy ‘socks5://127.0.0.1:1080’

代理取消:
git config --global --unset http.proxy
git config --global --unset https.proxy

fatal: unable to connect to github.com:github.com[0: 20.205.243.166]: errno=Connection timed out
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接

服务器和客户端是同一台机器,那么IP和地址设置为本机127.0.0.1,端口使用 netstat -a 查询结果里面的某一个就可以。
命令tasklist |findstr 端口 查询端口是否被占用;netstat -ano|findstr 端口 查询端口使用情况。
服务器和客户端不在同一台机器,客户端IP和地址要设置为服务器的开放端口,同时也要保证密钥相同。
其他原因:代理设置问题;防火墙/安全卫士问题;服务器未启动;连接池已满

在这里插入图片描述

$ wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh
--2022-11-02 09:17:21--  https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh
Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.131.3, 104.16.130.3, 2606:4700::6810:8203, ...
Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.131.3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 690850711 (659M) [application/x-sh]
Anaconda3-2022.05-Linux-x86_64.sh: Permission denied

Cannot write to ‘Anaconda3-2022.05-Linux-x86_64.sh’ (Success)

sudo su
wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh

unable to resolve docker endpoint: default orchestrator is kubernetes but unable to resolve kubernetes endpoint: CreateFile C:\Users\86152\.kube\config: The system cannot find the path specified.

将C盘.docker目录下config.json文件中的 “stackOrchestrator”: “kubernetes”, 删除

Docker 镜像存储位置修改

退出Ubuntu系统,退出Docker
CMD:wsl -l -v 查看是否全部停止,下图为运行状态

在这里插入图片描述

导出WSL子系统镜像
wsl --export docker-desktop “D:\Docker\decker-desktop.tar”
wsl --export docker-desktop-data “D:\Docker\decker-desktop-data.tar”
注销现有WSL
wsl --unregister docker-desktop
wsl --unregister docker-desktop-data
重新构建WSL系统,导入时需要导入在不同的位置,不然会报正在使用中,无法导入
wsl --import docker-desktop “D:\Docker\distro” “D:\Docker\decker-desktop.tar”
wsl --import docker-desktop-data “D:\Docker\data” “D:\Docker\decker-desktop-data.tar”
重启Docker(建议重启系统,让系统自动清理之前的文件)
docker -v 正常即为成功

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值