IDE hangs on startup: "openpgp: signature expired"

My Arduino is not working, it shows up and it hangs up on the loading screen and my laptop is an new one

I tired opening windows power shell too and tried the code that was posted earlier but it didn't work

I tried doing as given in this link

I suggest you go back to version 1.8.18, it works fairly well but it has some problems. I am working with 1.19 and it appears OK but it is different and I need to get more experience before recommending it.

The odds your school may be on that version.

Thanks

Are you using IDE 2.x?
Please explain what you mean by "the code that was posted".
Please explain what you mean by "but it didn't work".

As in the above post mentioned I opened the windows power shell and typed this code

".\Arduino IDE"

Nothing happened after I typed this statement

I think you did forget the &.

I did add &. But it didn't work

You are in the wrong directory; see point 2 in post #2.

And please do not post screenshots / photos; copy and paste will do.

PS C:\Program Files\Arduino IDE> & ".\Arduino IDE"
PS C:\Program Files\Arduino IDE> -
Arduino IDE 2.3.2
Checking for frontend application configuration customizations. Module path: C:\Program Files\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Program Files\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.2" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.35.3" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-02-20T10:04:35.814Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{}},"defaultLocale":"","validatePreferencesSchema":false,"preferences":{"window.title":"${rootName}${activeEditorShort}${appName}","files.autoSave":"afterDelay","editor.minimap.enabled":false,"editor.tabSize":2,"editor.scrollBeyondLastLine":false,"editor.quickSuggestions":{"other":false,"comments":false,"strings":false},"editor.maxTokenizationLineLength":500,"editor.bracketPairColorization.enabled":false,"breadcrumbs.enabled":false,"workbench.tree.renderIndentGuides":"none","explorer.compactFolders":false},"appVersion":"2.3.2","cliVersion":"0.35.3","buildDate":"2024-02-20T10:04:35.814Z"}
Starting backend process. PID: 13940
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/k%20prasanth%20kumar/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-08-29T01:55:56.249Z root INFO Backend Object.initialize: 6.7 ms [Finished 0.637 s after backend start]
2024-08-29T01:55:56.250Z root INFO Backend Object.configure: 5.7 ms [Finished 0.638 s after backend start]
2024-08-29T01:55:56.250Z root INFO Backend s.onStart: 3.2 ms [Finished 0.638 s after backend start]
2024-08-29T01:55:56.251Z root INFO Backend s.configure: 0.4 ms [Finished 0.673 s after backend start]
2024-08-29T01:55:56.252Z root INFO Backend d.onStart: 0.3 ms [Finished 0.673 s after backend start]
2024-08-29T01:55:56.253Z root INFO Backend d.configure: 0.1 ms [Finished 0.673 s after backend start]
2024-08-29T01:55:56.254Z root INFO Backend d.initialize: 35.5 ms [Finished 0.674 s after backend start]
2024-08-29T01:55:56.254Z root INFO Backend c.onStart: 0.4 ms [Finished 0.674 s after backend start]
2024-08-29T01:55:56.256Z root INFO Backend a.configure: 1.5 ms [Finished 0.675 s after backend start]
2024-08-29T01:55:56.258Z config INFO >>> Initializing CLI configuration...
2024-08-29T01:55:56.259Z root INFO Backend c.initialize: 0.7 ms [Finished 0.676 s after backend start]
2024-08-29T01:55:56.259Z root INFO Backend R.onStart: 1.0 ms [Finished 0.676 s after backend start]
2024-08-29T01:55:56.260Z config INFO Loading CLI configuration from c:\Users\k prasanth kumar\.arduinoIDE\arduino-cli.yaml...
2024-08-29T01:55:56.261Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-08-29T01:55:56.261Z root INFO Backend a.initialize: 0.6 ms [Finished 0.678 s after backend start]
2024-08-29T01:55:56.261Z root INFO Backend w.onStart: 1.7 ms [Finished 0.679 s after backend start]
2024-08-29T01:55:56.261Z root INFO Backend r.configure: 2.9 ms [Finished 0.679 s after backend start]
2024-08-29T01:55:56.261Z discovery-log INFO start
2024-08-29T01:55:56.261Z discovery-log INFO start new deferred
2024-08-29T01:55:56.261Z root INFO Backend d.initialize: 1.1 ms [Finished 0.681 s after backend start]
2024-08-29T01:55:56.261Z root INFO Backend y.onStart: 3.6 ms [Finished 0.684 s after backend start]
2024-08-29T01:55:56.261Z root INFO Backend r.configure: 3.1 ms [Finished 0.684 s after backend start]
2024-08-29T01:55:56.261Z root INFO Backend a.onStart: 0.6 ms [Finished 0.686 s after backend start]
2024-08-29T01:55:56.261Z root INFO Backend h.configure: 0.5 ms [Finished 0.686 s after backend start]
2024-08-29T01:55:56.261Z root INFO Backend s.configure: 0.1 ms [Finished 0.686 s after backend start]
2024-08-29T01:55:56.261Z root INFO Backend l.configure: 0.1 ms [Finished 0.686 s after backend start]
2024-08-29T01:55:56.265Z root INFO Theia app listening on http://127.0.0.1:61805.
2024-08-29T01:55:56.265Z root INFO Finished starting backend application: 4.1 ms [Finished 0.690 s after backend start]
Restoring workspace roots: c:\Users\k prasanth kumar\Downloads\magnificent_jaban1.ino
isTempSketch: false. Input was c:\Users\k prasanth kumar\Downloads\magnificent_jaban1.ino
2024-08-29T01:55:56.421Z root WARN The local plugin referenced by local-dir:/c%3A/Users/k%20prasanth%20kumar/.arduinoIDE/plugins does not exist.
2024-08-29T01:55:56.421Z root WARN The local plugin referenced by local-dir:/c%3A/Users/k%20prasanth%20kumar/.arduinoIDE/extensions does not exist.
2024-08-29T01:55:56.421Z root WARN The local plugin referenced by local-dir:C:\Users\k prasanth kumar\.arduinoIDE\plugins does not exist.
2024-08-29T01:55:56.432Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\k prasanth kumar\\Documents\\Arduino"},"library":{"enable_unsafe_install":false},"logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2024-08-29T01:55:56.432Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-08-29T01:55:56.432Z config INFO Loaded the CLI configuration.
2024-08-29T01:55:56.436Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/k%20prasanth%20kumar/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/k%20prasanth%20kumar/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-08-29T01:55:56.436Z config INFO Validating the CLI configuration...
2024-08-29T01:55:56.437Z config INFO The CLI config is valid.
2024-08-29T01:55:56.437Z config INFO <<< Initialized the CLI configuration.
2024-08-29T01:55:56.458Z root INFO Resolve plugins list: 198.1 ms [Finished 0.882 s after backend start]
2024-08-29T01:55:56.558Z daemon INFO time="2024-08-29T07:25:56+05:30" level=info msg="Using config file: c:\\Users\\k prasanth kumar\\.arduinoIDE\\arduino-cli.yaml"
time="2024-08-29T07:25:56+05:30" level=info msg="arduino-cli.exe version 0.35.3"
time="2024-08-29T07:25:56+05:30" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:61806
{"IP":"127.0.0.1","Port":"61806"}
2024-08-29T01:55:56.558Z daemon INFO Daemon is running.
2024-08-29T01:55:56.586Z daemon INFO time="2024-08-29T07:25:56+05:30" level=info msg="Updating libraries index"
time="2024-08-29T07:25:56+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-08-29T01:55:57.547Z root INFO Deploy plugins list: 198.1 ms [Finished 1.972 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-08-29T01:56:00.351Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 1142.3 ms [Finished 3.963 s after frontend start]
2024-08-29T01:56:00.353Z root WARN A command editor.action.toggleStickyScroll is already registered.
2024-08-29T01:56:04.782Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error verifying signature: openpgp: signature expired
2024-08-29T01:56:04.797Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Checking signature" index="C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
2024-08-29T01:56:04.801Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Loading hardware from: C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\packages"
2024-08-29T01:56:04.801Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Loading package builtin from: C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\packages\\builtin"
2024-08-29T01:56:04.802Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Checking existence of 'tools' path: C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-08-29T07:26:04+05:30" level=info msg="Loading tools from dir: C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
2024-08-29T01:56:04.802Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
2024-08-29T01:56:04.803Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
2024-08-29T01:56:04.803Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
2024-08-29T01:56:04.804Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.1"
2024-08-29T01:56:04.804Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
2024-08-29T01:56:04.804Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Loading libraries index file" index="C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\library_index.json"
2024-08-29T01:56:04.805Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\libraries" location=ide
2024-08-29T01:56:04.805Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\k prasanth kumar\\Documents\\Arduino\\libraries" location=user
2024-08-29T01:56:04.805Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open C:\Users\k prasanth kumar\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-08-29T01:56:04.810Z root ERROR The primary packages indexes are missing. Running indexes update before initializing the core gRPC client The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\k prasanth kumar\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-08-29T01:56:04.812Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Updating libraries index"
2024-08-29T01:56:04.813Z daemon INFO time="2024-08-29T07:26:04+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-08-29T01:56:04.815Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2024-08-29T01:56:07.918Z daemon INFO time="2024-08-29T07:26:07+05:30" level=info msg="Updating libraries index"
2024-08-29T01:56:07.919Z daemon INFO time="2024-08-29T07:26:07+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-08-29T01:56:12.394Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error verifying signature: openpgp: signature expired
2024-08-29T01:56:12.409Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Checking signature" index="C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
2024-08-29T01:56:12.411Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Loading hardware from: C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\packages"
2024-08-29T01:56:12.411Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Loading package builtin from: C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\packages\\builtin"
2024-08-29T01:56:12.412Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Checking existence of 'tools' path: C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
2024-08-29T01:56:12.412Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Loading tools from dir: C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
2024-08-29T01:56:12.412Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
2024-08-29T01:56:12.412Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
2024-08-29T01:56:12.412Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
2024-08-29T01:56:12.413Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.1"
2024-08-29T01:56:12.413Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
2024-08-29T01:56:12.413Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Loading libraries index file" index="C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\library_index.json"
2024-08-29T01:56:12.413Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\k prasanth kumar\\AppData\\Local\\Arduino15\\libraries" location=ide
2024-08-29T01:56:12.413Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open C:\Users\k prasanth kumar\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-08-29T01:56:12.413Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\k prasanth kumar\\Documents\\Arduino\\libraries" location=user
2024-08-29T01:56:12.415Z root ERROR Uncaught Exception:  Error: The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\k prasanth kumar\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-08-29T01:56:12.415Z root ERROR Error: The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\k prasanth kumar\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

    at C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:622877
    at E.evaluateErrorStatus (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:622893)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async a.<anonymous> (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:622563)


I'm not a specialist and might be totally wrong but I think that the mismatch in times is the cause. Fix the time and try again.

2024-08-29T01:56:12.413Z daemon INFO time="2024-08-29T07:26:12+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\k prasanth kumar\\Documents\\Arduino\\libraries" location=user

As you're using IDE 2.x I've moved your topic to the dedicated IDE 2.x section of the forum.

Thanks it worked well. Thank you