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:
apt-cache policy curl
Which should print something like this:
curl:
Installed: 7.81.0-1ubuntu1.10
Candidate: 7.81.0-1ubuntu1.10
Version table:
*** 7.81.0-1ubuntu1.10 500
500 http://it.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
100 /var/lib/dpkg/status
7.81.0-1 500
500 http://it.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
Update
If the package is correctly installed this command should show where the binary is
$ dpkg -L curl | grep bin
/usr/bin
/usr/bin/curl
Check the $PATH variable:
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
If it's not present, you can temporarily add /usr/bin to your $PATH variable with:
$ export PATH=/usr/bin:$PATH
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:
$ /usr/bin/curl
curl: try 'curl --help' or 'curl --manual' for more information
which curl
,curl https://www.google.com
,sudo which curl
,sudo curl https://www.google.com
– Simon Sudler Mar 25 '23 at 12:41