'can't write .bashrc, .bash_aliases on Ubuntu 20 [closed]

I am using the newly installed Ubuntu 20.04 LTS. I tried to write some aliases to .bashrc as always by using nano .bashrc. After I wrote them, I tried to write then this message was shown.

[ Error writing .bashrc: Read-only file system ]

So I did sudo chmod 766 .bashrc then,

chmod: changing permissions of '.bashrc': Read-only file system

How do I solve this situation? Same messages show when I tried to write .bash_aliases.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source