0

While trying to install ade(Awesome Development Environment) through Ubuntu Terminal, for a Autoware.Auto Course , I've ran into a problem while moving the ade executable from "adehome" file to path "~/.local/bin". After the following commands:

~/adehome$ mv ade ~/.local/bin
~/adehome$ which ade

No directory appears, and by trying to enter such directory, appears the following message:

bash: cd: /home/marcoluis/.local/bin: Not a directory

How can I retrieve the filepath in order to continue? Or should I just try again the steps given?

Edit: After checking ~/.local filepath list, the following output path is given:

$ ls -la ~/.local
total 7828
drwx------  3 marcoluis marcoluis    4096 out 15 14:25 .
drwxr-xr-x 18 marcoluis marcoluis    4096 out 15 14:22 ..
-rwxrwxr-x  1 marcoluis marcoluis 7999712 jan 26  2020 bin
drwx------ 14 marcoluis marcoluis    4096 out 15 14:49 share
8
  • 1
    Did the ~/.local/bin directory already exist when you did that mv? If not, you just renamed your ade file to the bin file in ~/.local.
    – muru
    Oct 15, 2021 at 14:19
  • I am not sure if it existed or not, the video classes say that the file path should exist in any ubuntu machine. Is there anyway I can reverse this? Oct 15, 2021 at 14:22
  • 1
    Your video classes are mistaken. A stock install of Ubuntu does not include that directory, which would be empty anyway. However, it is trivial to create the directory, and it is very likely that your error can be undone.
    – user535733
    Oct 15, 2021 at 14:24
  • Seems like I did rename the ade file into bin. SO could you tell me whats the best way to proceed? Oct 15, 2021 at 14:27
  • @MarcoLuís Create ~/.local/bin then add to your $PATH.
    – Liso
    Oct 15, 2021 at 14:32

1 Answer 1

2

Your ~/.local/bin is not a directory, but a large file. The directory likely did not yet exist when you executed the command. In that case, move interprets /bin as the target filename and thus renames the file ade to a file named bin under ~/.local.

It will interpret /bin as a directory only if that directory exists. Thus, rename that bin file back to ade, and create the bin directory:

mkdir -p ~/.local/bin

Then you can move the file to the desired directory:

mv ~/.local/ade ~/.local/bin

On Ubuntu, the ~/.local/bin directory will automatically be included in your search PATH if you log out then back in.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .