zoukankan      html  css  js  c++  java
  • ubuntu基本配置

    新装的系统18.X版本提示没有vi,

    sudo apt-get update
    sudo apt-get upgrade

    使用阿里源

    备份/etc/apt/sources.list  # cp /etc/apt/sources.list /etc/apt/sources.list.bak

    在/etc/apt/sources.list文件前面添加如下条目
    #添加阿里源
    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

    最后执行如下命令更新源
    sudo apt-get update
    sudo apt-get upgrade

    新装系统没有vi和vim  # 此时无法进行编辑 

    备份/etc/apt/sources.list  # cp /etc/apt/sources.list /etc/apt/sources.list.bak

    rm sources.list  # 删除源文件

    echo "deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse" > sources.list # 新建源文件并写入内容

    最后执行如下命令更新源
    sudo apt-get update
    sudo apt-get upgrade

    安装vim

    apt-get install vim

    cp sources.list.bak sources.list  # 复制备份的源文件至当前目录并改名

    vi编辑器异常

    ubuntu预装的是vim tiny版本,而需要的是vim full版本

    sudo apt-get remove vim-common

    sudo apt-get install vim

    升级依赖关系

    sudo apt-get install -f

    安装QQ

    https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu  # 原文地址

    git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git

    ./install.sh # 安装deepin环境

    dpkg -i  包名# 安装团建

  • 相关阅读:
    SpringMVC返回JSON数据时日期格式化问题
    elementUI-tree组件 懒加载
    vue elementUi tree 懒加载使用详情
    Mybatis ResultMap Collection 复合主键
    ElasticSearch-IK分词
    Spring中的InitializingBean接口的使用
    ContextLoadListener & DispatcherServlet 加载顺序以及加载过程
    Spring中查看加载配置文件中 加载类的个数及详情
    DispatcherServlet 被加载顺序
    JetBrainsIDEA-structure结构继承的图标说明
  • 原文地址:https://www.cnblogs.com/shizhengquan/p/12515383.html
Copyright © 2011-2022 走看看