I want to install Go-Servre on my Ubuntu 14.04and I'm following this doc http://www.go.cd/documentation/user/current/installation/install/server/linux.html#debian-based-distributions-ie-ubuntu
According to the doc this is the procedure:
$ echo "deb http://dl.bintray.com/gocd/gocd-deb/ /" > /etc/apt/sources.list.d/gocd.list
$ wget --quiet -O - "https://bintray.com/user/downloadSubjectPublicKey?username=gocd" | sudo apt-key add -
$ apt-get update
$ apt-get install go-server
However, I have problem in first line when I run the command and I get following reply:
$ echo "deb http://dl.bintray.com/gocd/gocd-deb/ /" > /etc/apt/sources.list.d/gocd.list
bash: /etc/apt/sources.list.d/gocd.list: Permission denied
I even tried to change the permission but still I'm getting error:
$ sudo chmod +x /etc/apt/sources.list.d/gocd.list
[sudo] password for hesam:
chmod: cannot access ‘/etc/apt/sources.list.d/gocd.list’: No such file or directory
Any idea would be appreciated. Thanks.