Sometimes, just using sudo isn’t enough. You may need an extended session to do work as the root user. At times like this, the following command will save your day:-
sudo -i
The -i means interactive, and opens a root shell, assuming you have sudo priviledges.