搜索
node.js - ubuntu下无法从源安装nodejs
黄舟
黄舟 2017-04-17 11:01:52
[Node.js讨论组]

根据官方文档:

sudo apt-get update  
sudo apt-get install python-software-properties python g++ make  
sudo add-apt-repository ppa:chris-lea/node.js  
sudo apt-get update  
sudo apt-get install nodejs  

It installs current stable Node on the current stable Ubuntu. Quantal (12.10) users may need to install the software-properties-common package for the add-apt-repository command to work: sudo apt-get install software-properties-common

安装 software-properties-common 时出现 Size mismatch 错误:

Failed to fetch http://ubuntu.mirrors.ucloud.cn/ubuntu/pool/main/s/software-properties/software-properties-common_0.82.7.3_all.deb Size mismatch E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

尝试更新源(sudo apt-get update)时则出现以下错误:

Reading package lists... Done W: GPG error: http://ubuntu.mirrors.ucloud.cn precise InRelease: File /var/lib/apt/lists/partial/ubuntu.mirrors.ucloud.cnubuntudistspreciseInRelease doesn't start with a clearsigned message W: GPG error: http://ubuntu.mirrors.ucloud.cn precise-updates InRelease: File /var/lib/apt/lists/partial/ubuntu.mirrors.ucloud.cnubuntudistsprecise-updatesInRelease doesn't start with a clearsigned message W: GPG error: http://ubuntu.mirrors.ucloud.cn precise-backports InRelease: File /var/lib/apt/lists/partial/ubuntu.mirrors.ucloud.cnubuntudistsprecise-backportsInRelease doesn't start with a clearsigned message W: GPG error: http://ubuntu.mirrors.ucloud.cn precise-security InRelease: File /var/lib/apt/lists/partial/ubuntu.mirrors.ucloud.cnubuntudistsprecise-securityInRelease doesn't start with a clearsigned message

相关信息

Ubuntu 12.04 64位

求解决

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

全部回复(3)
迷茫

源里的数据有问题,换个源试试,比如sohu的。昨晚我用163的源也遇到类似问题来着。

天蓬老师

不要添加nodejs的ppa,直接从ubuntu的源试试

巴扎黑

直接编译安装也不更加省时 还是最新版本 我有强迫症 喜欢最新版本的

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号