trouble updating IDE

I have downloaded the latest IDE version for my Linux (raspberry Pi) and when I run the install.sh, I get the following messages:

pi@raspberrypi:~ $ cd Arduino
pi@raspberrypi:~/Arduino $ cd arduino-1.8.13
pi@raspberrypi:~/Arduino/arduino-1.8.13 $ sudo ./install.sh
Adding desktop shortcut, menu item and file associations for Arduino IDE...

touch: cannot touch '/root/.config/mimeapps.list': No such file or directory
/usr/bin/xdg-mime: 848: /usr/bin/xdg-mime: cannot create /root/.config/mimeapps.list.new: Directory nonexistent

done!
pi@raspberrypi:~/Arduino/arduino-1.8.13 $

I ran it as sudo, but it is having trouble. When the desktop icon is doubleclicked, the 'execute' tab is clicked and then the mouse pointer turns into an hourglass for several seconds, then turns back into a pointer, and nothing starts. If anyone can help get me going again, I would appreciate it.

Thanks,

Roger