Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 2.68 KB

File metadata and controls

74 lines (55 loc) · 2.68 KB

ChatGPT Linux Troubleshooting Tips

Below is a consolidated list of Linux‑related troubleshooting topics we've covered in our conversations. This list excludes non-Linux issues such as JTAG or AXI-specific debugging and focuses purely on problems involving the Linux OS, its package management, desktop environment issues, and development environment conflicts.


1. APT Usage Warnings

  • Caution when scripting with ``: apt is designed for interactive use and its command‑line interface isn’t guaranteed stable across releases. For scripts, prefer `apt-get`/`apt-cache`.
    # Instead of `apt search foo` in scripts, use:
    apt-cache search foo
  • Listing installed package files: To locate specific CMake files (e.g., KWinX11Config.cmake), install the development package or use dpkg:
    dpkg -L kwin-dev | grep KWinX11Config.cmake  # May need `plasma-dev` or `kwin-builder` packages

2. KWin / KDE Plasma 6 Build Issues

  • Missing ``: If CMake can’t find KWinX11Config.cmake when building KWinX11 for Plasma 6, ensure you have KDE development packages like `kwin-dev`, `plasma-dev`, and related dependencies for your KDE version.
  • CMake errors due to missing Plasma or KDE dev files: Sometimes KDE/Plasma upgrades are ahead of what’s in the repo, so you may need to build from source or use a more bleeding-edge distro like KDE Neon.

3. Qt Library Conflicts

  • Mixing incompatible Qt versions: Example error: Cannot mix incompatible Qt library (6.8.0).
    • Cause: Having multiple versions of Qt in LD_LIBRARY_PATH, or mixing system-installed Qt with self-compiled builds.
    • Fix:
      unset LD_LIBRARY_PATH
      export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt6/plugins
    • You may need to adjust environment variables per app or use a containerized environment.

4. GRUB Background Customization

  • Set a custom background image for GRUB:
    1. Convert your image to PNG/JPG and place it in /boot/grub/.
    2. Add this line to /etc/default/grub:
      GRUB_BACKGROUND="/boot/grub/my_wallpaper.png"
    3. Update GRUB:
      sudo update-grub

5. Python & pip Installation Best Practices

  • Avoid system-wide `` installs: Installing packages system-wide via pip can clash with your distro’s packages.
  • Preferred methods:
    • Using virtual environments:
      python3 -m venv ~/venv/project_env
      source ~/venv/project_env/bin/activate
      pip install package-name
    • User installs (safe fallback):
      pip install --user package-name

End of Linux Troubleshooting Tips.