Linux for Beginners: Installing Debian, APT, Networking, and Common Problems
A practical FAQ for beginners focused on Debian: how to find installation files, use APT, and check network connectivity step by step. It also covers a safe approach to common software problems.

Scope of This FAQ: The Examples Are for Debian
Linux is not a single system with identical tools and settings everywhere. Distributions differ, for example, in package management and network configuration. For that reason, the practical examples in this FAQ are specifically for Debian on a typical computer. Before using them, find out the name and version of your distribution in the system settings or documentation. A command for Debian does not automatically apply to Ubuntu or another distribution.
When troubleshooting, distinguish between an observation and an assumption. “The browser says the server could not be found” is an observation; “the DNS server has failed” is only a possible cause so far. Write down the exact error message, what you were doing just before it appeared, and whether the problem affects one application or several. This information will help you find instructions that address the actual symptom.
The command-line work here starts mainly with checks that do not change the network configuration. Software installation commands, by contrast, can change the system and may require administrator privileges. Before running them, read what they are intended to do and review the proposed list of changes. If you do not understand the impact of a step, do not proceed just because someone described it as a quick fix.
- The APT and network-tool examples in this article are for Debian.
- Note the exact name and version of your system.
- Do not mistake an error message for a confirmed diagnosis.

Find Debian Installation Files for amd64
For this example, assume you need Debian installation files for amd64. Debian’s installation guide points to the installer image directory on a Debian mirror. The directory includes a MANIFEST file, which lists each image and its purpose. Use it to identify an image that suits your installation rather than guessing from a filename.
A nearby mirror may be faster to reach, but the right image still depends on your needs and installation method. This article does not compare every image or explain all installation choices. Once you have identified the appropriate file, continue with the installation guide for your device and architecture.
- Check that the installation files are for the architecture you need; this example uses amd64.
- Use the
MANIFESTin the installer image directory to check what each image is for. - Follow the installation guide for your device before making partitioning decisions.

Install Debian amd64 in a Disposable Virtual Machine
This walkthrough assumes the virtual machine is configured for amd64 and has a new, empty virtual disk attached. Boot it from Debian installation media and press Enter at the installer’s opening screen. Choose your language and country, then confirm the suggested keyboard layout unless you know it is wrong. The installer detects hardware and attempts to configure the network using DHCP; if that is unavailable, it offers manual setup.
Create the requested accounts: set a root password, or leave it unset to disable the root account and use sudo for administration, and provide the details for one regular user. At partitioning, choose guided partitioning for the entire drive only after verifying that the selected drive is the empty test disk belonging to this VM. Partitioning and writing changes can erase data. Do not use the empty-disk choice on a dual-boot setup or a computer with an existing system or files; stop and consult the detailed partitioning guide before proceeding in those cases.
Before confirming the partition changes, inspect the displayed disk, partition table, formatting actions, and mount points. Make sure the plan applies only to the VM’s empty test disk, includes swap, and mounts a partition at /. If anything is unexpected, do not write the changes. Once you accept the plan, the installer formats partitions, installs the base system, and installs a kernel.
APT is configured before additional software is installed. Keep “Standard system utilities” selected; select “Desktop environment” if you want a graphical desktop. In the final stage, accept the default GRUB location on the UEFI partition or primary drive boot record when appropriate for this VM. When installation completes, remove or disconnect the installation media and reboot. Verify that the VM starts from its virtual disk and that you can log in with the regular user account.
- Before partitioning, confirm the target is the VM’s empty virtual disk—not a host disk or a disk containing data.
- At the review screen, stop if the target, formatting, or mount points are not what you expect.
- After reboot, confirm the installed system reaches a login screen and accepts your account.
How Packages and APT Work in Debian
A package is a unit of software managed by the distribution’s package system. In Debian, APT retrieves information from archives and helps install compatible sets of programs. Dependencies matter: if a package lists Depends, the specified packages must be installed at the same time as it or beforehand. The Recommends relationship is a strong but not absolute recommendation; Debian’s documentation says most users would probably also want the recommended packages.
For ordinary interactive command-line work, Debian recommends apt, for example when installing and removing programs. apt-get is particularly useful for scripts and can serve as a fallback when apt is unavailable. aptitude provides a text interface for package management and searching; in a graphical environment, you can use tools such as GNOME Software or Synaptic. Program names and availability can vary depending on the system version and configuration.
A simple example of installing the mc package on Debian takes two steps: first, refresh the local archive information with sudo apt update, then run sudo apt install mc. The first command refreshes the metadata APT uses to look up packages; by itself, it does not upgrade installed programs. During installation, APT may also propose necessary dependencies. Read what it plans to add or remove, and confirm the change only if it matches the task you expect.
Before running commands with sudo, understand that they run with administrator privileges. Administrator privileges can significantly change the system, so do not use them for commands from an unfamiliar source unless you understand their purpose. Do not automatically apply this procedure to other distributions: first find out which package manager they use.
apt updaterefreshes metadata; it is not the same as upgrading installed software.- APT resolves package dependencies instead of installing every file in isolation.
- Review the proposed changes before confirming an installation.
Three Different APT Operations
Examples for Debian: retrieving archive information, installing one package, and performing a separate system upgrade.
| Operation | Example | What it does |
|---|---|---|
| Refresh metadata | sudo apt update | Downloads archive information and refreshes APT’s local metadata. |
| Install a program | sudo apt install mc | Selects the package, resolves dependencies, and proposes the installation. |
| Upgrade installed packages | sudo apt upgrade | This is a separate operation; review the proposed changes before confirming. |
What to Do When the Network Is Not Working
On Debian, you can start with commands that display the status but do not change the network configuration. Open a terminal and run ip addr show. The output lists network interfaces and their addresses. Look for the interface corresponding to a wired or wireless connection, for example, and note whether it has been assigned an address. Its name might look like enp0s25; interface names are not always eth0.
Next, run ip route show. The output shows the routing table. If the results do not match what you expect for your connection, record them for further checks rather than changing network files blindly. By itself, the command does not explain why a route or setting is missing.
Then check whether a remote host is reachable with ping -c 4 yahoo.com. This example sends four requests; replies can indicate whether a connection to that name was established. A failed ping alone is not a complete diagnosis. Try to determine whether the problem affects only one website or application, or whether other devices are experiencing it too.
If the dig tool is available, try dig yahoo.com A. The query requests an A record for the specified name. If name lookup fails but other signs suggest that the network connection is working, there may be a DNS name-resolution problem; this is not a certain conclusion without further checks. If the tool is missing, you do not need to install it while the network is down; simply note that you could not perform this check.
ip addr showdisplays interface status and addresses.ip route showprints the routing table.pinganddigcan help distinguish some symptoms, but their results are not a complete diagnosis.
Basic Connectivity Diagnostics
Move from checking the local interface to checking routing and name resolution.
- 1Interface
Run
ip addr showand note the interface name and assigned address. - 2Routing
Run
ip route showand save the output for comparison with the expected setup. - 3Reachability
Try
ping -c 4 yahoo.com; failure alone is not a complete diagnosis. - 4DNS
If
digis available, trydig yahoo.com Aand save the exact output.
Network Configuration: When to Stick to Checking
Network configuration varies across Debian systems. The Debian Reference describes automatic network configuration tools as aimed primarily at mobile desktop users and cautions against using them for servers. If you are having trouble, first check the connection status in the interface you use and note whether you are using Wi-Fi or a cable and whether the system connected to the local network.
Debian warns that NetworkManager and the older ifupdown tool can conflict when managing the same interfaces. NetworkManager manages only interfaces that are not listed in /etc/network/interfaces. For that reason, randomly editing this file, adding another network manager, or restarting services based on a post about a different computer is not a good first step. If the configuration is unfamiliar, first find out which tool your installation uses.
The commands in the previous section are for viewing the current state, not for repairing the configuration. Commands that change the address, gateway, or DNS settings can interrupt the connection, especially if the computer is managed remotely. Do not use example static addresses such as 192.168.0.15 on your own network: they are examples from the documentation and may not match your network. If you need to change settings, follow the documentation for the tool that actually manages your system.
Take extra care with a server or a computer you access over the network. A configuration change can interrupt the connection you use to manage the system. In that situation, arrange a suitable way to access it locally beforehand or ask an administrator for help. This FAQ therefore focuses on observation and diagnostics, not universal commands for changing the network.
- First check the connection in the interface or tool that manages your system.
- Do not combine network managers or edit configuration without confirming their roles.
- Do not copy example addresses or configuration files as ready-made settings.
Troubleshoot a Package That APT Cannot Find
For example, suppose you try to install the Debian package mc and APT reports that it cannot locate the package. Stale local package information is one possible cause, not a certainty. First record the exact error and check that the package name is spelled as intended. Refresh APT’s package lists with sudo apt-get update or, from a root shell, apt-get update. This refreshes package metadata; it does not by itself upgrade installed software.
Read the command’s output. If the update completes without errors, retry with sudo apt-get install mc (or apt-get install mc as root). Review APT’s proposed changes before confirming. If the same “cannot locate” error remains, the metadata refresh did not resolve the issue.
At that point, check whether APT is configured to retrieve packages from the intended Debian source for this system. Do not copy repository entries from an unrelated release or make changes you cannot explain. Stop rather than confirming if APT proposes unexpected removals or other changes, or if the update reports errors you cannot interpret. Keep the full output and the system’s Debian version for further diagnosis; do not bypass APT with forced package-installation commands.
- Refresh metadata, then retry the same package installation and compare the result.
- If errors persist, verify the configured package source matches the Debian system.
- Stop if the proposed transaction is unexpected or the repository/update errors remain unresolved.
How to Prepare a Useful Question and What to Do Next
If you cannot solve the problem yourself, prepare a short, specific description. Include the distribution and version, what you wanted to do, what actually happened, the exact error text, and the steps you have already tried. For a network problem, add whether one application, a particular website, or multiple services are affected, and whether other devices are having similar trouble. For a package problem, state whether it involved refreshing metadata, installing a package, or upgrading.
Include the output of diagnostic commands if you ran them: ip addr show, ip route show, or dig yahoo.com A. Explain which command you could not run and why; for example, the dig tool was not installed. Do not send output without context, and before sharing it publicly, check whether it contains information you do not want to disclose, such as internal device names or network addresses.
When working with Debian, use documentation intended for your version and distinguish between a standard desktop and a server. For installation, return to the guide for your architecture and installation medium; for packages, consult the APT documentation; for networking, use the documentation for the manager your system actually uses. If a procedure requires administrator privileges, changes the disk, or overwrites network configuration and you do not understand the consequences, ask for an explanation first.
This article offers concrete first steps for finding installation files, working with packages, and diagnosing common network symptoms on Debian. It is not a complete guide to disk partitioning or a universal fix for every distribution. A safe next step is one that matches your system, has a clear purpose, and produces a result you can verify.
- State your system, your goal, what you observed, and the exact error.
- Include diagnostic output and say if you could not run a command.
- Before making a change with administrator privileges, check its purpose and impact.
Preparing a Technical Support Question
A concise record that helps others understand what failed and what has already been checked.
- 1System
Give the distribution and its version.
- 2Goal and symptom
Describe the expected and actual behavior.
- 3Evidence
Include the exact error and relevant output from diagnostic commands.
- 4Steps already tried
List what you tried and the result.
Frequently asked questions
Does this article explain how to find Debian installation files?
Yes. For an amd64 example, it points to the installer image directory on a Debian mirror and explains that the MANIFEST lists each image and its purpose. Use the installation guide for your device for the actual installation steps and partitioning decisions.
Can I use APT commands on every Linux distribution?
No. The apt update and apt install examples in this article are for Debian. First identify your distribution and use its documentation and package-management tools.
What do the ip addr show and ip route show commands tell me?
ip addr show displays network interfaces and their addresses; ip route show prints the routing table. These are inspection commands. By themselves, they do not identify the cause of every outage or repair the configuration.
Does a failed ping mean that the internet is not working?
Not necessarily. ping is a useful reachability test, but one result alone is not a complete diagnosis. Consider it alongside interface status, routing, and other symptoms.
Is apt update the same as updating installed programs?
No. On Debian, apt update downloads archive metadata and refreshes APT’s local information. Upgrading installed packages is a separate operation.
Should I force a package installation if APT reports an error?
Do not try that as a random fix. Debian warns against forced installation with dpkg --force-all -i and against installing random packages with dpkg -i. Save the exact error message and check Debian’s documentation for the next step.
Sources and further reading 8
- Preguntas frecuentes sobre GNU/Linux Proyecto GNU
- Debian Reference, capítulo 1: Tutoriales de GNU/Linux Proyecto Debian
- The Linux command line for beginners Ubuntu
- Debian Reference, Chapter 2: Debian package management Debian Project
- Debian Reference, Chapter 5: Network setup Debian Project
- Debian Installation Guide, Section 4.2: Downloading Files from Debian Mirrors Debian Project
- Chapter 1. GNU/Linux tutorials Debian Project
- A.3. Installation Debian Project