[How to Solve] sh: 0: getcwd() failed: No such file or directory First cd ~ And then again apt-get install XXX There is no such problem