随笔分类 - 【操作系统】Ubuntu
摘要:ubuntu20.04 apt命令找不到 重新安装apt需要下载和安装这三个包,到官网下载 ubuntu-keyring下载地址:http://archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-keyring/ libapt-pkg和apt下载地址:http:
阅读全文
摘要:参考:https://www.cnblogs.com/qianmaoliugou/p/12369654.html 1.android studio更换成阿里源 在根目录中的bulid.gradle更改内容 buildscript { repositories { maven { url 'http:
阅读全文
摘要:安装JAVA1.8 sudo apt-get install openjdk-8-jdk 切换JAVA版本 sudo update-alternatives --config java
阅读全文
摘要:先进入到ubuntu存放桌面快捷方式的文件夹 cd /usr/share/applications gedit或者vi一下,复制下面的内容, Name为名字,Exec为执行文件,Icon为图标 [Desktop Entry] Name=Typora Exec=/home/moon/software/
阅读全文
摘要:使用临时的阿里源安装某个包,如装个requests请求包 pip install -i http://mirrors.aliyun.com/pypi/simple/ requests 在ubuntu系统中,pip源设置是在~/.pip/pip.conf文件中,在该文件中加入以下内容 [global]
阅读全文
摘要:ubuntu中常用来配置环境变量有两个文件,一个是非root用户的.bashrc,更改以后能在当前用户生效另一个是包括了所有用户的profile,更改以后能在所有用户生效。 .bashrc 一个是 sudo vim ~/.bashrc 加入以下内容 export /moon/anaconda3/bi
阅读全文
摘要:先打开文件,把原来的源注释掉 vi /etc/apt/sources.list 然后在尾部加上 # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main
阅读全文