Error when uploading ArduinoISP sketch

I'm using Arduino UNO to program Attiny85 chip.
In order to do that I have to upload ArduinoISP sketch to my UNO.
But error occured :
Arduino: 1.8.13 (Linux), Board: "Arduino Uno"

/home/hamid/Downloads/arduino-1.8.13/arduino-builder -dump-prefs -logger=machine -hardware /home/hamid/Downloads/arduino-1.8.13/hardware -hardware /home/hamid/.arduino15/packages -tools /home/hamid/Downloads/arduino-1.8.13/tools-builder -tools /home/hamid/Downloads/arduino-1.8.13/hardware/tools/avr -tools /home/hamid/.arduino15/packages -built-in-libraries /home/hamid/Downloads/arduino-1.8.13/libraries -libraries /home/hamid/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10813 -build-path /tmp/arduino_build_80453 -warnings=none -build-cache /tmp/arduino_cache_422790 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/hamid/Downloads/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/hamid/Downloads/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/hamid/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/hamid/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=/home/hamid/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/hamid/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/hamid/Downloads/arduino-1.8.13/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino
/home/hamid/Downloads/arduino-1.8.13/arduino-builder -compile -logger=machine -hardware /home/hamid/Downloads/arduino-1.8.13/hardware -hardware /home/hamid/.arduino15/packages -tools /home/hamid/Downloads/arduino-1.8.13/tools-builder -tools /home/hamid/Downloads/arduino-1.8.13/hardware/tools/avr -tools /home/hamid/.arduino15/packages -built-in-libraries /home/hamid/Downloads/arduino-1.8.13/libraries -libraries /home/hamid/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10813 -build-path /tmp/arduino_build_80453 -warnings=none -build-cache /tmp/arduino_cache_422790 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/hamid/Downloads/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/hamid/Downloads/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/hamid/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/hamid/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=/home/hamid/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/hamid/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/hamid/Downloads/arduino-1.8.13/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino
Using board 'uno' from platform in folder: /home/hamid/Downloads/arduino-1.8.13/hardware/arduino/avr
Using core 'arduino' from platform in folder: /home/hamid/Downloads/arduino-1.8.13/hardware/arduino/avr
Detecting libraries used...
/home/hamid/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/hamid/Downloads/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/hamid/Downloads/arduino-1.8.13/hardware/arduino/avr/variants/standard /tmp/arduino_build_80453/sketch/ArduinoISP.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
fork/exec /home/hamid/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: no such file or directory
Error compiling for board Arduino Uno.

Has anyone experience this error and any suggestion to resolve this?

Thank you for any assistant.

This error indicates something has gone wrong with a hardware package installed via Boards Manager. The solution is to remove the installed packages. Be aware this will remove any boards you have installed via Boards Manager:

  • (In the Arduino IDE) File > Preferences
  • Click the link on the line following "More preferences can be edited directly in the file". This will open the Arduino15 (or similar name depending on OS) folder.
  • Delete all files and folders under the Arduino15 folder except for preferences.txt. Please be very careful when deleting things from your computer. When in doubt, back up!
  • Restart the Arduino IDE

Verify that you can now use your board before reinstalling any packages via Boards Manager.

Thank you for prompt response. I have done your instructions and now arduino IDE is functioning properly again.

Again thank you for the help, really appreciate it.

You're welcome. I'm glad to hear it's working now. Enjoy!
Per