windows禁用临时IPV6地址
管理员cmd输入
netsh interface ipv6 set privacy state=disabled
然后重启。
管理员cmd输入
netsh interface ipv6 set privacy state=disabled
然后重启。
NJCF7-PW8QT-3324D-688JX-2YV66
ubuntu默认的软件园在国外,国内访问就是龟速,严重影响使用!下面说说更换国内软件源的方法。
我们来切换到软件仓库的配置目录:
cd /etc/apt
备份原来的仓库配置
cp sources.list sources.list.back
使用nano文本编辑器打开配置文件:
nano sources.list
把光标放到第一行,按住ctrl加k清空文字;
然后复制新的仓库地址,见闻莫;
在命令窗口内鼠标右键执行粘贴操作,粘贴玩后可以用光标键浏览;
检查无误后按ctrl加x,在输入y回车保存配置文件
然后执行:
apt update
换源工作就完成了。
注:若命令无法执行,可在命令前加sudo或用su切到root账户操作。
地址,从中选一个即可
阿里云
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic- security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic- updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic- proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic- backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic- security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic- updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic- proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
这是一条分割线
中科大
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic- updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic- updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic- backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic- backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic- security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic- security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic- proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
这是一条分割线
清华
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
出现这样的问题,一般都是因为子系统的重装或系统所在路径改变造成的。在wsl.exe中注销之前的子系统,重新安装即可解决。
解决方法:
打开管理员cmd或powerShell
输入以下命令
wsl --list --all
这条命令用于列出已注册的子系统。
然后输入
wsl --unregister "上面显示的系统名称不含引号"
再去启动新安装的子系统就好了。
由于商店可以获取到的wsl子系统较少,这里贴上wsl子系统的手动下载地址。下载回来是微软商店的安装包文件,可以回车安装,若无微软商店或想放到其他分区,直接暴力拆包就可以使用。
wsl子系统总共有6个,分别是ubuntu、debian、fedora、kali、SUSE和openSUSE。
下面是下载地址:
点此跳转