Unable to install libjsonrpccpp-dev and other dependencies on Linux Mint 21.2

Abstract: Fixes libjsonrpccpp-dev installation failures on Linux Mint 21.2 by enabling the Universe repository and resolving broken dependencies.

Created: 2026-10-07 by

Installing libjsonrpccpp-dev on Linux Mint 21.2 often fails due to missing repository components or corrupted package caches rather than the package itself being unavailable. The solution requires ensuring the Universe repository is enabled, updating the local package index with sudo apt update, and resolving any dependency conflicts by running sudo apt install -f. This approach addresses the most common causes of installation failures for development libraries in Debian-based systems.

Verify Repository Configuration

Linux Mint is built upon Ubuntu, which organizes its software into different repositories based on licensing and support levels. The package libjsonrpccpp-dev resides in the "Universe" repository, which contains community-maintained open-source software. If this repository is disabled, the package manager will report that the package cannot be found, leading to an immediate installation failure. First, check your current repository status. Open a terminal and run:
apt-cache policy libjsonrpccpp-dev
If the output indicates that the package is not installed and no candidate version is available, it likely means the source list does not include the correct repository. You can verify your sources by checking the contents of /etc/apt/sources.list and the files in /etc/apt/sources.list.d/. Ensure that there are entries corresponding to the "universe" component for your distribution version (Jammy Jellyfish for Mint 21.2). If you suspect the repository is missing, you can enable it using the Software Sources GUI or via command line. For command-line users, editing the sources file directly is precise. However, a safer method is to use the add-apt-repository command if available, though on minimal installations, you may need to install software-properties-common first. Once the repository is confirmed to be active, proceed to update the package lists.

Resolve Package Cache Issues

A frequent cause of installation errors, even when the package exists, is a corrupted or outdated local package cache. When apt tries to resolve dependencies, it relies on the metadata stored in /var/lib/apt/lists/. If these files are stale or corrupted, the system may fail to locate dependencies required by libjsonrpccpp-dev. Start by refreshing your package index. Run the following command to fetch the latest information from all configured repositories:
sudo apt update
Watch the output closely for any "Failed to fetch" errors. If you encounter network-related issues, such as timeouts or connection refusals, refer to guides on Troubleshooting Temporary Failure Resolving DNS Errors for general connectivity diagnostics, although Mint typically uses standard Ubuntu mirrors. If the update completes successfully without errors, try installing the package again:
sudo apt install libjsonrpccpp-dev
If the installation still fails, the issue might be related to broken dependencies from previous interrupted installations. In such cases, use the automatic fix tool provided by apt:
sudo apt --fix-broken install
This command attempts to repair broken dependencies by installing or removing packages as necessary. It is a crucial step before attempting to install new software, as it ensures the package database is in a consistent state.

Check for Dependency Conflicts

Development packages like libjsonrpccpp-dev have strict dependency requirements. They often depend on specific versions of shared libraries and build tools. If another package on your system has pinned a conflicting version of a library, the installation will halt. To diagnose this, look at the error message returned by apt install. It usually specifies which package is causing the conflict. Common culprits include older versions of libboost-dev or cmake that were manually installed or held back by a previous operation. You can check for held packages by running:
apt-mark showhold
If any packages are listed, they are preventing updates or new installations. You can unhold them with:
sudo apt-mark unhold <package-name>
After unholding, run sudo apt update again and retry the installation. If the problem persists, consider checking if there are any partially installed packages by running dpkg --audit. This command identifies packages that are unpacked but not configured, which can block further operations.

Alternative Installation Methods

In rare cases where the standard apt installation continues to fail despite correct repository configuration and cache integrity, building the package from source might be necessary. However, this is generally discouraged unless absolutely required, as it bypasses the system's package management and can lead to maintenance difficulties. Before resorting to source compilation, ensure that all essential build tools are present. Install the build-essential meta-package if it is missing:
sudo apt install build-essential
This provides compilers, linkers, and basic libraries needed for compiling C++ projects. If you must compile from source, download the source code from the official JSON-RPC-CPP repository and follow the standard CMake build process. Note that this method does not integrate with apt, so future updates must be managed manually. For users experiencing persistent graphical interface issues while managing packages, such as flickering windows in the Software Manager, refer to Troubleshooting Flickering Windows on Linux Mint to ensure your display server is functioning correctly during package operations.

Frequently Asked Questions

Why does apt say the package is not found?

This error almost always indicates that the "Universe" repository is disabled in your sources list. Verify that your sources.list includes the universe component and run sudo apt update to refresh the package index.

Can I install libjsonrpccpp-dev on Linux Mint 21.1?

No, packages are specific to the Ubuntu base version. Linux Mint 21.1 is based on Ubuntu 22.04, while 21.2 is also based on 22.04, so the package should exist in both. However, if you were on Mint 21 (Ubuntu 20.04), the package name or availability might differ.

What should I do if apt-get install hangs?

If the installation hangs, it is likely waiting for input or stuck on a dependency resolution loop. Check if a configuration prompt is hidden behind other windows. Use Ctrl+C to interrupt, then run sudo dpkg --configure -a to finish any pending configurations.

Is libjsonrpccpp-dev included in the default Linux Mint installation?

No, development libraries are not included in the default desktop installation to save space. You must explicitly install them via the terminal or Software Manager after enabling the appropriate repositories.

How do I remove libjsonrpccpp-dev completely?

To remove the package and its configuration files, use sudo apt purge libjsonrpccpp-dev. To remove unused dependencies that were automatically installed, run sudo apt autoremove.

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