• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

netselect-apt: command not found

by Deepika

“netselect-apt” is a utility tool that helps create a sources.list file for a Debian mirror with the lowest latency. “sources.list” is a configuration file in Debian-based systems that specifies the sources of packages and updates.

“netselect-apt” works by measuring the latency (the time it takes for a request to reach a server and receive a response) of different Debian mirrors, and choosing the one with the lowest latency. This helps ensure that updates and package installations will be performed quickly and efficiently, as the system will use the Debian mirror with the lowest latency.

The tool is particularly useful for Debian-based systems that are located far away from the nearest Debian mirror, as it helps to minimize the delay in downloading packages and updates. It can also be useful for systems with limited network resources, as it can help reduce the amount of data transmitted and improve network performance.

If you encounter the below error while running the command netselect-apt:

netselect-apt: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install netselect-apt
Kali Linux apt-get install netselect-apt
Raspbian apt-get install netselect-apt

netselect-apt Command Examples

1. Create `sources.list` using the lowest latency server:

# sudo netselect-apt

2. Specify Debian branch, stable is used by default:

# sudo netselect-apt testing

3. Include non-free section:

# sudo netselect-apt --non-free

4. Specify a country for the mirror list lookup:

# sudo netselect-apt -c India

Filed Under: Linux

Some more articles you might also be interested in …

  1. pulseaudio Command Examples in Linux
  2. jq: command not found (JSON CLI Parser)
  3. How to load SELinux Module For Oracleasm
  4. rpm-ostree Command Examples in Linux
  5. How to change hostname in CentOS/RHEL 7
  6. How to Setup VNC Server for New User in CentOS/RHEL 5
  7. lastcomm: command not found
  8. mktemp Command Examples in Linux
  9. inxi Command Examples in Linux
  10. po4a-gettextize: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • “aws s3 rm” Command Examples
  • “aws s3 presign” Command Examples
  • “aws s3 mv” Command Examples
  • “aws s3 mb” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright