0

I am trying to follow these instructions to permit new updates of an opensource GIS software program to take place on my Ubuntu: http://qgis.org/en/site/forusers/alldownloads.html#ubuntu

I used nano to add the following lines:

sudo apt-get update
sudo apt-get install qgis python-qgis
sudo apt-get install qgis-plugin-grass

only to discover that sudo is "not known" and caused an error. When I tried to reopen the sources.list file I get a blank screen in the terminal (below). Please, please advise.

enter image description here

3 Answers 3

2

Path you gave on the nano is totally wrong. It's not etc/apt/sources.list, it's /etc/apt/sources.list. You forget the / symbol before etc. The below command will open /etc/apt/sources.list file through nano editor,

sudo nano /etc/apt/sources.list

If you gave the file path wrongly, nano will open an empty window like above.

2
  • ok,that was it.
    – mikeLdub
    Jun 23, 2014 at 16:21
  • I answered your question after reading the title only "Unable to view or edit etc/apt/sources.list". Still now i didn't read the content. Jun 23, 2014 at 16:23
1

Correct. Generally, things are now written individually into their own file under /etc/apt/sources.list.d. However, if you check QGIS Installers again - there is a ppa you might try,

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install qgis python-qgis qgis-plugin-grass
3
  • Thanks, it appears using the ppa would work, but I still cannot get it to run until I remove the lines of code I added to sources.list file. Any idea why I was able to add the lines and now I cannot even see the text?
    – mikeLdub
    Jun 23, 2014 at 15:58
  • On my system cat /etc/apt/sources.list produces an empty file. Jun 23, 2014 at 15:59
  • got it, see @avinashraj 's comment
    – mikeLdub
    Jun 23, 2014 at 16:20
0

I may be mistaken - please correct me if I am. From your text above, it appears that you are adding the lines

sudo apt-get update
sudo apt-get install qgis python-qgis
sudo apt-get install qgis-plugin-grass 

to your /etc/apt/sources.list file. This is incorrect - the 'sudo apt-get...' lines are commands which should be typed into a terminal to ask Ubuntu to fetch the packages into your operating system. Press ctrl+alt+t to open a terminal for this purpose. The sudo command will ask for your password before proceeding.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.