1

I have a docker container running debian linux (it's using the postgres image) that I'd like to install nano on so I can edit files. However, when I try

# apt-get install nano

the output I get is

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package nano

I am following this documentation. What step am I missing here?

4

So apparently there was an easy solution to this. I just needed to update first:

# apt-get update
# apt-get install nano
| improve this answer | |
  • Please, say, why before "apt-get install nano" you should do "apt-get update"? – Viktar Akulenka Apr 20 at 13:30

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.