I am following a mariadb documentation in which the starting steps have been completed but when I use this command.
sudo curl -o /etc/apt/trusted.gpg.d/mariadb_release_signing_key.asc
'https://mariadb.org/mariadb_release_signing_key.asc'
This command gives me an error:
sudo: curl: command not found
I have tried to install curl on my Ubuntu using these commands.
sudo apt update
sudo apt install curl
I am not sure whether it is installed now but it gives me the same error when i try to use the above command again.
For more understanding I am also adding the screenshot of some additional commands too.
Something went wrong during the installation of curl as it seems that your systems still misses it.
In order to check if the package curl is installed, you can try to run the following command:
Which should print something like this:
Update
If the package is correctly installed this command should show where the binary is
Check the $PATH variable:
If it's not present, you can temporarily add /usr/bin to your $PATH variable with:
To make this change permanent you can edit ~/.profile (user wide) or /etc/environment (system wide)
If everything else fails, you can always manually run the binary file using the full path:
The
curl
package seems to be broken, therefore reinstall the package withThis will fix any missing binaries.
However, package binaries going missing is not a "normal" behavior. Someone or something must deliberately delete these files.
I have tried all of these commands for the installation of the curl.
I also tried that command which is used for the reinstallation of curl.
After that command it was showing that curl was installed as I checked it with the following command.
It showed the following response which stated that curl is installed now.
But the issue didn't resolve because of that but when I updated my ubuntu to 22.04 then this issue has been resolved and the following command has worked fine.
So, there was an issue with the command I was using with the curl and that's why it was giving the error and it's solved now.