【Hadoop】在Ubuntu系统下安装Hadoop单机/伪分布式安装

Ubuntu 14.10


 前方有坑:

由于之前的分布式系统电脑带不动,所以想换一个伪分布式试一试。用的是Virtualbox + Ubuntu 14.10 。


  •  apt-get 源无法更新解决方案

Ubuntu普通版本支持的时间都有限,过了支持的时间,更新源都会被停用,比如Ubuntu 9.10原来的源都失效了(包括官方源,类似ustc的第 三方源,因为这些第三方源也是和官方源同步的)。因此,直接用原来的源列表是不能安装更新软件的。为了解决这个问题,Ubuntu官方专门出了一个 old-release的镜像(http://old-releases.ubuntu.com/)。

版本号    
11.04:  natty
11.10:  oneiric
12.04:  precise
12.10:  quantal
13.04:  raring
13.10:  saucy
14.04:  trusty
14.10:  utopic
15.04:  vivid
15.10:  wily
16.04:  xenial
16.10:  yakkety

首先先备份源列表:

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

用编辑器打开:

 sudo gedit /etc/apt/sources.list

Ubuntu Linux其他版本的只需要把 utopic 改成其版本代号即可,这样过期后的版本也可以继续使用了。选择下面的源,替换掉文件中所有的内容,保存编辑好的文件:

deb http://old-releases.ubuntu.com/ubuntu/ utopic main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ utopic-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ utopic-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ utopic-proposed main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ utopic main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ utopic-security main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ utopic-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ utopic-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse


猜你喜欢

转载自www.cnblogs.com/guangluwutu/p/9911870.html
今日推荐