Cannot Import Bookmarks in Firefox: Solutions and Workarounds

Abstract: Restore Firefox bookmarks on Ubuntu after system re-imaging by manually copying the old places.sqlite file to the new profile directory.

Created: 2026-09-26 by
Firefox bookmarks fail to import on Ubuntu 22.04 LTS because system re-imaging changes the profile directory structure, breaking the link between the browser and its data files. This guide provides immediate workarounds to restore access by locating the old places.sqlite database and manually restoring it to the new profile folder, ensuring your saved links are recovered without relying on the broken import wizard.

Understanding Profile Isolation in Ubuntu

When you re-image an Ubuntu system, the operating system often creates a fresh user environment or resets configuration directories. Firefox stores all user-specific data, including bookmarks, history, and passwords, in a hidden directory called .mozilla/firefox/. Each unique installation of Firefox gets a random alphanumeric suffix (e.g., xxxxxxxx.default-release) to isolate profiles. If the system re-image generates a new random ID for your profile while leaving the old bookmark data in a previous directory, the import function will fail because it cannot find the source file in the expected location. The browser sees a blank slate rather than a corrupted file, leading to confusion when users attempt to use the standard "Import from Backup" feature.

Locating Your Old Bookmark Database

The first step is to identify where your original bookmark data resides. Even if the current Firefox instance appears empty, the old data likely remains in the filesystem unless explicitly deleted. Open the Terminal application and navigate to the home directory. You need to look inside the .mozilla folder, which contains one or more subdirectories representing different profile versions. Use the following command to list these directories with their modification dates:
ls -lt ~/.mozilla/firefox/
This command lists the profile folders sorted by time, showing the most recently modified ones first. Look for a folder that has a name similar to your current profile but was created before the re-image occurred. Inside that older profile folder, locate the file named places.sqlite. This SQLite database contains all your bookmarks and history. If you see multiple candidates, check the places.sqlite file size; a healthy database with many bookmarks will typically be several megabytes in size, whereas a new, empty profile will be very small.

Restoring Bookmarks via File Replacement

Once you have identified the correct places.sqlite file from the old profile, you can manually replace the empty file in your current active profile. First, ensure Firefox is completely closed. Then, open your current profile folder, which you can find by typing about:support in the address bar and clicking "Open Directory" next to "Profile Folder." Navigate back to the terminal and copy the old database file into this active folder using the cp command:
cp ~/.mozilla/firefox/OLD_PROFILE_ID/places.sqlite ~/.mozilla/firefox/CURRENT_PROFILE_ID/places.sqlite
Replace OLD_PROFILE_ID and CURRENT_PROFILE_ID with the actual folder names found in the previous step. It is crucial to overwrite the existing places.sqlite file in the current profile. After copying, start Firefox again. Your bookmarks should now appear immediately. If they do not, try restarting the computer to ensure no background processes are locking the file. This method bypasses the GUI import tool entirely, solving issues caused by UI glitches or permission errors during the import wizard.

Alternative Recovery Methods

If manual file replacement does not resolve the issue, consider checking for automatic backups. Firefox occasionally creates backup copies of the database in the same directory with names like places.sqlite.bak or places.sqlite-corrupt. You can rename the current places.sqlite to something else and rename the .bak file to places.sqlite to restore a slightly older version of your data. For more complex scenarios involving significant data loss, refer to our guide on Recovering Old Firefox Bookmarks in Ubuntu 22.04 LTS, which details advanced recovery techniques using JSON export files if available. Additionally, if you are migrating to a newer version of Ubuntu, such as 24.04, ensure that your export methods are compatible with the latest browser updates by reviewing Method to Export & Open URLs in Firefox Window on Ubuntu 24.04.

Preventing Future Import Failures

To avoid this situation in future system updates or re-imaging events, enable Firefox's built-in synchronization feature. By creating a Firefox Account and syncing your data to Mozilla's servers, your bookmarks are stored remotely rather than solely on the local disk. When you log in after a system reset, your bookmarks will download automatically, eliminating the need for manual file manipulation. Furthermore, regularly export your bookmarks to an HTML file through the Library menu. This creates a portable backup that can be imported via the standard interface even if the local profile becomes corrupted. Keeping a local HTML backup ensures you always have a fallback option independent of the profile directory structure.

Frequently Asked Questions

Why does the import wizard show no sources?

The wizard shows no sources because it looks for specific legacy browser data formats in predefined locations, which may not exist after a clean install. Since your data is trapped in an old profile folder, the wizard cannot detect it. Manual file replacement is required to bridge this gap.

Is it safe to delete the old profile folder?

Yes, but only after you have successfully copied the places.sqlite file to your active profile and verified that all bookmarks appear correctly in Firefox. Deleting the old folder frees up disk space and prevents confusion during future troubleshooting sessions.

Can I recover bookmarks if places.sqlite is missing?

If the places.sqlite file is gone, you must rely on JSON backups created by Firefox extensions or manual exports. Without these secondary backups, local recovery is impossible. Check your Downloads folder or cloud storage for any previously exported HTML files.

Does this fix apply to Chrome or Chromium?

No, this solution is specific to Firefox. Chromium-based browsers store bookmarks in a different format and directory structure, typically in Bookmarks files within the .config/google-chrome directory. Attempting to copy Firefox files to Chrome will result in corruption.

What if my bookmarks appear but are disorganized?

Disorganization usually indicates that the toolbar and menu structures were not included in the places.sqlite file alone. While the links are present, the folders might be misplaced. You can use the Library view to manually drag items into their correct folders or use a third-party extension to sort them.

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