Software⏱️ 3 min readπŸ“… 2026-06-11

How to Fix: Error trying to get tmux 1.6 installed - E: Unable to locate package libevent

Error trying to install tmux 1.6 due to libevent not found.

Quick Answer: Try installing libevent using apt-get, or consider alternative package managers like apt-get's --fix-missing option.

The error 'libevent not found' occurs when trying to install TMUX version 1.6, affecting users who have not installed the required dependency.

This issue can be frustrating as it prevents the installation of a necessary package, causing delays in getting started with the software.

πŸ’‘ Why You Are Getting This Error

  • The primary reason for this error is that libevent is not installed on the system. libevent is a dependency required by TMUX version 1.6.
  • An alternative cause could be that the package manager (in this case, apt-get) is unable to locate libevent in its repositories.

βœ… Best Solutions to Fix It

Installing libevent using apt-get

  1. Step 1: Update the package index by running the command 'sudo apt-get update'. This ensures that the package list is up-to-date and includes any available updates.
  2. Step 2: Install libevent using the command 'sudo apt-get install libevent'. If the package is not found, try searching for it with 'sudo apt-cache search libevent' to see if there are any alternative versions or packages that can be installed.

Installing libevent from source

  1. Step 1: Download the libevent source code using a package manager like apt-get. The command 'sudo apt-get install build-essential' will install the necessary dependencies.
  2. Step 2: Extract the downloaded archive to a temporary directory, then navigate into that directory and run './configure && make'.

πŸ’‘ Conclusion

Once libevent is installed, attempt to configure and build TMUX version 1.6 using the original commands provided in the error message. If issues persist, consider seeking further assistance or consulting the official documentation for additional guidance.

Did this fix your problem?

If not, try searching for specific error codes.

πŸ” Search Error Database

❓ Frequently Asked Questions