分类 IT 下的文章

平常在写文章的时候喜欢用word编辑和排版,最后在博客发表的时候就要手动改成markdown格式,较为繁琐。
此工具能将排好版的word文档直接另存为markdown格式,就可以直接在博客发表。
下载地址:
点此跳转
下载回来后常规安装,安装好后会显示在word的选项卡,可以直接对选择的文本复制成markdown。
也可以通过另存文档的方式把整份文档转成markdown。

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 "上面显示的系统名称不含引号"
再去启动新安装的子系统就好了。