美文网首页
linux操作中遇到的问题及解决办法

linux操作中遇到的问题及解决办法

作者: 窗前的樱花 | 来源:发表于2018-06-20 19:59 被阅读0次

    更换软件源,/etc/apt/source.list之后,安装软件不成功会显示you have held broken packages,使用apt-get remove <package>将之前的包移除,然后重新安装

    推荐使用网易的源,速度杠杠的(之前倒是找到过一个阿里云源,有一个url无法访问)


    deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse

    deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse

    deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse

    deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse

    deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse

    deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse

    deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse

    deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse

    deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse

    deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse


    sudo apt-get install <package>安装时候显示lock不可用,使用 ps -aux | grep apt, kill掉相关进程即可

    相关文章

      网友评论

          本文标题:linux操作中遇到的问题及解决办法

          本文链接:https://www.haomeiwen.com/subject/lhzxyftx.html