21

I am trying to use Ubuntu 18.04 to download ModSecurity on Google Cloud, but whenever I try writing sudo nano *file*.conf or nano *file*.conf. I get an error saying -bash: nano: command not found or sudo: nano: command not found. I'm not sure if it is because I'm using Google Cloud Platform for this, but I just need to know how to solve this problem

David Babablola
  • 313
  • 2
  • 3
  • 11

3 Answers3

37

Try running sudo apt-get install nano

It appears nano isn't installed on your machine

SerialEnabler
  • 872
  • 7
  • 10
6

I had the same error. The fix to this is that the nano text editor is missing in your OS. You can download it by writing this in the terminal window:

sudo apt install nano

Note: The apt-get would also work but it is depreciated now and the new term is apt.

Abhinav Garg
  • 69
  • 1
  • 1
3

Seems nano is missing on this ubuntu.

Try: sudo apt-get install nano

Adi Dembak
  • 2,433
  • 2
  • 18
  • 26