Kuulostaa siltä että shellin asetustiedostoissa on jotain puppua. Esim. .bashrc tai .bash_profile tiedostossa.
Korjausohjeita on hankala antaa tietämättä/näkemättä vikaa. Voit etsiä mahdollista vikatiedostoa grep:llä:
grep maven .*
Se kertoo missä tiedostoissa 'maven' majailee. Sitten pitäisi vaan avata ko. tiedosto tekstieditoriin ja korjata vikapaikka...
Tässä vastaus: Olen monta kerta asentanut maven..
root@heidi-desktop:~# grep maven .*
.bash_history:mkdir /usr/local/apache-maven
.bash_history:mkdir /usr/local/apache-maven
.bash_history:mkdir /usr/local/apache-maven
.bash_history:mkdir /local/apache-maven
.bash_history:mkdir /local/apache-maven
.bash_history:export M2_HOME=/usr/local/apache-maven/apache-maven-2.0.9
.bash_history:export M2_HOME=/usr/local/apache-maven
.bash_history:/usr/local/apache-maven
.bash_history:sudo mkdir /usr/local/apache-maven
.bash_history:tar -zxf maven-1.1.tar.gz
.bash_history:sudo make install maven-1.1.tar.gz
.bash_history:sudo make maven-1.1.tar.gz
.bash_history:sudo /usr/local/apache-maven
.bash_history:sudo mv maven-1.1.tar.gz/ /usr/local/apache-maven
.bash_history:sudo mv maven-1.1/ /usr/local/apache-maven
.bash_history:/usr/local/apache-maven
.bash_history:sudo mv maven-1.1 /usr/local/apache-maven
.bash_history:'/usr/local/apache-maven
.bash_history:h@h-desktop:~$ sudo mv maven-1.1.tar.gz/ /usr/local/apache-maven
.bash_history:sudo mv maven-1.1.tar.gz/ /usr/local/apache-maven
.bash_history:tar -zxf apache-maven-1.1.tar.gz
.bash_history:tar -zxf maven-1.1.tar.gz
.bash_history:sudo tar -zxf maven-1.1.tar.gz
.bash_history:wget
http://apache.mirror99.com/maven/binaries/apache-maven-2.0.9-bin.tar.gz.bash_history:tar -zxf maven-1.1.tar.gz
.bash_history:sudo aptitude install maven-1.1
.bash_history:sudo aptitude install maven-1.1.tar.gz
.bash_history:aptitude search
http://mirror.eunet.fi/apache/maven/binaries/maven-1.1.tar.gz.bash_history:aptitude search <http://mirror.eunet.fi/apache/maven/binaries/maven-1.1.tar.gz>
.bash_history:aptitude search
http://mirror.eunet.fi/apache/maven/binaries/maven-1.1.tar.gz.bash_history:sudo aptitude search
http://mirror.eunet.fi/apache/maven/binaries/maven-1.1.tar.gz.bash_history:sudo aptitude install maven-1.1.tar.gz
.bash_history:sudo aptitude install maven-1.1
.bash_history:tar -zxf maven-1.1.tar.gz
.bash_history:sudo tar -zxf maven-1.1.tar.gz
.bash_history:ln -s maven-1.1 maven
.bash_history:install maven-1.1
.bash_history:cd apache-maven
.bash_history:install maven-1.1
.bash_history:make install maven-1.1
.bash_history:tar -jvxf maven-1.1.tar.gz
.bash_history:tar -xf maven-1.1.tar
.bash_history:tar -xf maven-1.1
.bash_history:tar -xf maven-1.1.tar
.bash_history:tar -xf maven-1.1.tar.gz
.bash_history:bunzip2 maven-1.1.tar.gz
.bash_history:ls maven-1.1.tar.gz
.bash_history:ls maven-1.1
.bash_history:wget
http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-1.1.tar.gz.bash_history:tar -zxf maven-1.1.tar.gz
.bash_history:tar -xf maven-1.1.tar.gz
.bash_history:tar -xf maven-1.1.tar
.bash_history:tar -xf maven-1.1.tar
.bash_history:gunzip maven-1.1.tar.bz2
.bash_history:gunzip maven-1.1.tar.gz
.bash_history:wget
http://mirror.eunet.fi/apache/maven/binaries/maven-1.1.tar.gz.bash_history:gunzip maven-1.1.tar.gz.1
.bash_history:gunzip maven-1.1.tar.gz
.bash_history:tar xzvf maven-1.1.tar.gz
.bash_history:tar -zxf maven-1.1.tar.gz
.bash_history:maven -version
.bash_history:export MAVEN_HOME=/maven-1.1
.bash_history:maven -v
.bash_history:export MAVEN_HOME=/maven-1.1
.bash_history:maven -v
.bash_history:maven dist.
.bash_history:maven.repo.remote=file:///shared/repository
.bash_history:maven.repo.remote=http://repository.sls.fi/
.bash_history:maven.repo.remote=http://repository.atlassian.com,http://mirrors.ibiblio.org/pub/mirrors/maven,http://www.ibiblio.org.maven
.bash_history:maven.repo.remote=http://repository.atlassian.com,
http://mirrors.ibiblio.org/pub/mirrors/maven,
http://www.ibiblio.org.maven.bash_history:maven.repo.remote=http://repository.atlassian.com/,
http://mirror.eunet.fi/apache/.bash_history:maven dist
.bash_history:maven dist.
.bash_history:export MAVEN_HOME=/home/h/apache-maven/bin
.bash_history:MAVEN_maven-1.1
.bash_history:MAVEN_HOME=/maven-1.1
.bash_history:export HERITRIX_HOME=/maven-1.1
.bash_history:export MAVEN_HOME=/maven-1.1
.bash_history:export MAVEN_HOME="/maven-1.1"
.bash_history:maven -v
.bash_history:export MAVEN_HOME=/maven-1.1
.bashrc:export M2_HOME= /maven-1.1
.bashrc:export M2=/maven-1.1
.bashrc:export PATH=$PATH: /maven-1.1
.bashrc~:export M2_HOME= /maven-1.1
.bashrc~:export M2=/maven-1.1
.bashrc~:export PATH=$PATH: /maven-1.1
.gtk-bookmarks:file:///home/h/apache-maven
grep: .gvfs: Permission denied
.recently-used.xbel: <bookmark href="file:///home/h/Desktop/maven-1.1.tar.bz2" added="2009-10-21T06:55:18Z" modified="2009-10-21T10:42:03Z" visited="2009-10-21T06:55:18Z">
.recently-used.xbel: <bookmark href="file:///home/h/Desktop/maven-1.1/NOTICE.txt" added="2009-10-21T07:02:21Z" modified="2009-10-21T07:02:22Z" visited="2009-10-21T07:02:21Z">
.recently-used.xbel: <bookmark href="file:///home/h/Desktop/maven-1.1/LICENSE.txt" added="2009-10-21T07:02:33Z" modified="2009-10-21T07:02:33Z" visited="2009-10-21T07:02:33Z">
.recently-used.xbel: <bookmark href="file:///home/h/maven-1.1.tar.bz2" added="2009-10-21T10:42:59Z" modified="2009-10-21T11:28:04Z" visited="2009-10-21T10:42:59Z">
.recently-used.xbel: <bookmark href="file:///home/h/Desktop/maven-1.1.tar.gz" added="2009-10-21T12:09:39Z" modified="2009-10-22T12:28:43Z" visited="2009-10-21T12:09:39Z">
.recently-used.xbel: <bookmark href="file:///home/h/Desktop/maven-1.1(2).tar.gz" added="2009-10-21T12:26:05Z" modified="2009-10-21T12:26:06Z" visited="2009-10-21T12:26:06Z">
.recently-used.xbel: <bookmark href="file:///home/h/apache-maven/LICENSE.txt" added="2009-10-27T08:13:59Z" modified="2009-10-30T13:51:43Z" visited="2009-10-27T08:13:59Z">
.recently-used.xbel: <bookmark href="file:///home/h/apache-maven/NOTICE.txt" added="2009-10-30T13:51:36Z" modified="2009-10-30T13:51:37Z" visited="2009-10-30T13:51:36Z">
.recently-used.xbel: <bookmark href="file:///home/h/apache-maven/bin/install_repo.bat" added="2009-10-30T13:51:54Z" modified="2009-10-30T13:51:55Z" visited="2009-10-30T13:51:54Z">
root@h-desktop:~#