Ubuntu zsh: command not found: nano


    You might get zsh: command not found: nano, if the nano package is missing on your Ubuntu.


    To fix this issue you need to install nano using a package manager like apt, example - apt install nano,

    % apt install nano
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Suggested packages:
    The following NEW packages will be installed:
    0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
    Need to get 261 kB of archives.
    After this operation, 868 kB of additional disk space will be used.
    Get:1 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 nano arm64 4.8-1ubuntu1 [261 kB]
    Fetched 261 kB in 1s (263 kB/s)
    debconf: delaying package configuration, since apt-utils is not installed
    Selecting previously unselected package nano.
    (Reading database ... 8707 files and directories currently installed.)
    Preparing to unpack .../nano_4.8-1ubuntu1_arm64.deb ...
    Unpacking nano (4.8-1ubuntu1) ...
    Setting up nano (4.8-1ubuntu1) ...
    update-alternatives: using /bin/nano to provide /usr/bin/editor (editor) in auto mode

Now let's try using nano command,

% nano example.txt
Fix command nano not found on Ubuntu

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap