Solving the Image Display Issue in Linux Ubuntu 24.04 LTS: A Tech Support Guide

Abstract: Resolve missing image viewer in Ubuntu 24.04 LTS by installing eog and setting it as the default application for image files.

Created: 2026-10-06 by
Images fail to display in Ubuntu 24.04 LTS because the default GNOME desktop environment lacks a native image viewer application installed by default. To resolve this, you must install a dedicated image viewing package via the terminal using the apt package manager. This guide details the installation process and configuration steps required to restore full image preview capabilities across your file system.

Identifying the Root Cause

Ubuntu 24.04 LTS, like many modern Linux distributions, prioritizes a lightweight base installation. While the operating system includes robust tools for development, web browsing, and office productivity, it often omits specialized media viewers to save disk space. When you double-click an image file in the Files application (Nautilus), the system attempts to launch the default handler. If no handler is registered or installed, the action fails silently or presents an error dialog indicating that the appropriate software is missing. This issue is distinct from graphical driver problems. Your GPU drivers are likely functioning correctly if other graphical applications run smoothly. The problem is strictly related to the absence of user-space software capable of decoding common image formats such as JPEG, PNG, and WebP. Without a viewer, the operating system cannot render the pixel data into a visual window for the user.

Installing a Default Image Viewer

The most reliable solution is to install a standard image viewer that integrates well with the GNOME desktop environment. Eog, also known as Eye of GNOME, is the traditional default viewer for GNOME-based systems. It is lightweight, supports a wide range of formats, and handles batch operations efficiently. Alternatively, GThumb offers more advanced features for managing large libraries of photos. For most users, installing eog is sufficient to fix the immediate display issue. To begin, open your terminal. You can do this by pressing Ctrl+Alt+T or by searching for "Terminal" in the application menu. Once the terminal window is active, you need to update your local package index to ensure you are downloading the latest version of the viewer. Run the following command:
sudo apt update
After the update completes, install the Eye of GNOME package by executing:
sudo apt install eog
You will be prompted to enter your sudo password. Type it carefully; characters will not appear on screen for security reasons. Press Enter when finished. The system will then download and install the necessary dependencies. Once the installation finishes, close the terminal. If you prefer a more feature-rich alternative, you can install GThumb instead using:
sudo apt install gthumb
Both applications are now available in your application menu. However, simply installing them does not automatically set them as the default handler for all image types. You must explicitly configure the system associations.

Setting the Default Application

To ensure that double-clicking an image always opens it in your newly installed viewer, you need to change the file association. Navigate to any image file in your home directory. Right-click on the image and select Properties. In the properties window, locate the Open With tab. You will see a list of available applications. Select Eye of GNOME (or GThumb) from the list. Click the Set as default button. This action registers the viewer as the primary handler for MIME types such as image/jpeg and image/png. For a more comprehensive fix that applies to all supported image formats at once, you can use the xdg-mime command line tool. Open the terminal again and run the following command to set EOG as the default viewer for all image types:
xdg-mime default eog.desktop image/*
This single command updates the user's MIME database, ensuring consistency across different file managers and contexts. Verify the change by right-clicking another image type, such as a WebP file, and confirming that EOG is selected.

Troubleshooting Persistent Issues

In rare cases, the installation may succeed, but images still fail to open. This is often due to corrupted MIME cache files or permission issues. First, ensure that the image files themselves are not corrupted. Try opening a known good image file to isolate the problem. If specific formats fail while others work, you may need to install additional codec packages. For example, support for HEIC files (common on iPhones) requires the libheif-examples package. Install it with:
sudo apt install libheif-examples
Another potential cause is a conflict with previous configurations. Clearing the MIME cache can force the system to re-evaluate file associations. Run the following command to rebuild the cache:
update-mime-database ~/.local/share/mime
Restart your computer after making these changes to ensure all services reload the new settings. If the issue persists, consider checking the system logs for errors related to the image viewer using the journalctl command.

Alternative Solutions for Minimalists

If you prefer a headless approach or are working on a server without a graphical interface, you can view images directly in the terminal. Tools like fbi (framebuffer imageviewer) or chafa allow you to render ASCII art representations of images. Install chafa with:
sudo apt install chafa
Then, view an image by running:
chafa image.jpg
While this method does not provide a full GUI experience, it is invaluable for remote administration tasks where bandwidth is limited. For most desktop users, however, installing a proper GUI viewer remains the best path forward.

Frequently Asked Questions

Why did my images stop displaying after updating Ubuntu?

Updates sometimes reset default application associations or remove deprecated packages. Re-running the xdg-mime command to set your preferred viewer as the default usually restores functionality immediately without needing to reinstall the software.

Can I view images without installing any new software?

Not in the graphical desktop environment. The base Ubuntu installation intentionally excludes image viewers to maintain a minimal footprint. You must install a package like EOG or GThumb to enable visual rendering of image files through the file manager.

How do I open images in a specific format like HEIC?

Standard viewers may lack codecs for proprietary formats. You need to install additional libraries, such as libheif-examples for HEIC files. Once installed, restart your image viewer application to detect and load the new codec support.

Is there a way to batch convert images if I cannot view them?

Yes, you can use command-line tools like ImageMagick. Install it with sudo apt install imagemagick and use commands like convert input.jpg output.png to transform files even if you lack a graphical viewer for intermediate inspection.

What should I do if the default viewer crashes on startup?

Check the system logs for segmentation faults or library errors using journalctl -xe. Often, reinstalling the viewer package resolves corrupted binaries. You can also try switching to an alternative viewer like GThumb to determine if the issue is specific to one application.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More