Deepin 专业版桌面15.5 SP2安装最新版Nodejs

笔记本自带的Deepin系统如果按照官方指南手动安装,会出现错误:

Your distribution, identified as "camel", is not currently supported

其实官方脚本对Deepin发行版是做了判断的:

check_alt "Deepin" "panda" "Debian" "sid" check_alt "Deepin" "unstable" "Debian" "sid" check_alt "Deepin" "stable" "Debian" "buster"

不明白为什么专业版桌面的Codename改成了camel。至此解决方案很简单:

  1. 手动修改Codename为“sid”或者“buster”

  2. 按照官方指南操作

  3. 手动还原Codename为“camel”

    #1 set codename sudo sed -i 's/camel/buster/g' /etc/lsb-release

    #2 follow offical guide curl -sL https://deb.nodesource.com/setup_12.x | bash - apt-get install -y nodejs

    #3 recover sudo sed -i 's/buster/camel/g' /etc/lsb-release

评论

暂无评论