Ubuntu 22.04 Intel GPU软件源配置错误修复求助
Hey there, let's work through these repo issues together—they're totally common when experimenting with driver fixes, so don't beat yourself up over it!
First, let's recap what's going wrong: you tried fixing your HP ProBook 650G2's random black screen issue by switching to Ubuntu 22.04 and installing Intel GPU drivers via two different guides, which ended up messing up your software sources. Now you're seeing these three error messages when trying to update packages:
E: Invalid value set for option Signed-By regarding source https://repositories.intel.com/gpu/ubuntu/ jammy/production/2328 (not a fingerprint)
E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/intel.gpu.jammy.list
E: The list of sources could not be read
Let's fix these one by one:
First, fix the broken source file
The error says the/etc/apt/sources.list.d/intel.gpu.jammy.listfile hassudoon line 1—this doesn't belong in a sources list file at all. Let's edit it:
Open your terminal and run:sudo nano /etc/apt/sources.list.d/intel.gpu.jammy.listDelete the
sudotext from the first line, then double-check the rest of the file. A valid source line should look something likedeb [signed-by=/path/to/keyfile] https://repositories.intel.com/gpu/ubuntu jammy production/2328. Once you're done, pressCtrl+Oto save, thenCtrl+Xto exit nano.Next, fix the Signed-By fingerprint issue
This error happens because the value set forsigned-byisn't a valid GPG fingerprint or the path to the key file is wrong. Let's make sure we have Intel's official GPG key installed correctly:
Run this command in your terminal to download and install the key:wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | sudo gpg --dearmor -o /usr/share/keyrings/intel-graphics.gpgNow go back to the source file we edited earlier, and update the
signed-bypart to point to this key file. The correct line should be:deb [signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy production/2328Save the file again if you made changes.
Finally, verify the fix and update your system
Now let's check if the sources are working properly:sudo apt updateIf no errors pop up, you're good to go! If you still run into issues, you can start fresh by deleting the broken source file and re-adding the correct one:
sudo rm /etc/apt/sources.list.d/intel.gpu.jammy.list echo "deb [signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy production/2328" | sudo tee /etc/apt/sources.list.d/intel-gpu-jammy.list sudo apt update
Once your sources are fixed, you can reinstall the Intel GPU drivers properly:
sudo apt install intel-opencl-icd intel-level-zero-gpu level-zero intel-media-va-driver-non-free libmfx1
Reboot your system after installation, then check if the random black screen issue is resolved. If it still happens, you might want to look into power management settings or check system logs (run journalctl -b in terminal) to find clues about hardware-related errors.
备注:内容来源于stack exchange,提问作者Divine Ifanyi

