1、The package lists or status file could not be parsed or opened
是不是有apt的进程在运行?
杀掉就行了
gaotong@Ubuntu:~/hadoop-1.0.4/bin$ ps -ef|grep apt gaotong 7952 6682 0 20:12 pts/1 00:00:00 grep --color=auto apt gaotong@Ubuntu:~/hadoop-1.0.4/bin$ kill 7952 bash: kill: (7952) - No such process gaotong@Ubuntu:~/hadoop-1.0.4/bin$ kill 6682 gaotong@Ubuntu:~/hadoop-1.0.4/bin$ ps -ef|grep apt gaotong 7956 6682 0 20:13 pts/1 00:00:00 grep --color=auto apt gaotong@Ubuntu:~/hadoop-1.0.4/bin$
/sbin/service proftpd stop
to stop it from starting with the system
/sbin/chkconfig proftpd off
to start proftpd with the system
/sbin/chkconfig proftpd on
to manually start proftpd
/sbin/service proftpd start
and to restart it
/sbin/service proftpd restart
安装 sun jdk步骤 如下:
从http://www.oracle.com/technetwork/java/javase/downloads/中下载jdk,我的版本是jdk1.6.0_30,下载Linux64的bin文件,将其放在/usr/local/
或者添加仓库下周:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
这样安装netbeans的时候就会自动搜索到已经安装好的jdk了。
补充:需要update-alternatives --config javac 来设置javac