![无法安装节点/节点重定位错误](https://linux22.com/image/1152349/%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%E8%8A%82%E7%82%B9%2F%E8%8A%82%E7%82%B9%E9%87%8D%E5%AE%9A%E4%BD%8D%E9%94%99%E8%AF%AF.png)
Ubuntu 14.04 LTS(Trusty Tahr)
我收到以下错误:
$ sudo apt-get install nodejs
$ node -v
node: relocation error: node: symbol _ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
再试一次:
# Download and setup the APT repository add the PGP key to the system’s APT keychain,
$ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
...
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Err http://ppa.launchpad.net trusty/main amd64 Packages
404 Not Found
Err http://ppa.launchpad.net trusty/main i386 Packages
404 Not Found
Ign http://ppa.launchpad.net trusty/main Translation-en_US
Ign http://ppa.launchpad.net trusty/main Translation-en
Err http://ppa.launchpad.net trusty/main amd64 Packages
404 Not Found
Err http://ppa.launchpad.net trusty/main i386 Packages
404 Not Found
Ign http://ppa.launchpad.net trusty/main Translation-en_US
Ign http://ppa.launchpad.net trusty/main Translation-en
Fetched 2'060 kB in 36s (56.6 kB/s)
W: Failed to fetch http://ppa.launchpad.net/kdenlive/kdenlive-stable/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/kdenlive/kdenlive-stable/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/realtime.sunlight.wallpaper/rsw/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/realtime.sunlight.wallpaper/rsw/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting