What does “sudo apt-get update” do?

1

Answer #: 1

In a nutshell, apt-get update doesn’t actually install new versions of software.

apt-get update downloads the package lists from the repositories and “updates” them to get information on the newest versions of packages and their dependencies. It will do this for all repositories and PPAs. From http://linux.die.net/man/8/apt-get:

Used to re-synchronize the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list(5). An update should always be performed before an upgrade or dist-upgrade.

apt-get upgrade will fetch new versions of packages existing on the machine if APT knows about these new versions by way of apt-get update.

From http://linux.die.net/man/8/apt-get:

Used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list(5). Packages currently installed with...

0 0
2


Find a wired connection to use and get your wirelss working.

Works great for me in Debian.

Last edited by farslayer; 01-02-2009 at .

Yes. You

can

do it this way, but it will be pretty convoluted. Not impossible, but . . .I can't conceive of wanting to try it.

If you were only installing one package: sure, download the correct package on one computer, copy the package to the other, and install it.

But if you're doing a upgrade of all upgradeable packages, it's not a one-step process even on the target computer.

First you need to compare your current package list with the ones in the repositories:

If you don't have an internet connection on the target computer, how will you run that command to compare your packages to the repo packages and find out what needs upgrading?

It would be...

0 0
3

This article applies to all supported versions of Ubuntu

Package management via apt-get runs hand-in-hand with the /etc/apt/sources.list file. For information on editing or updating your sources list see SourcesList.

Introduction

This page describes how to handle the packages on your system using apt-get and related commands. For example, you can install a new package, remove an installed package, or update all installed packages to the latest versions.

Commands

Installation commands

apt-get install This command installs a new package. apt-get build-dep

This command searches the repositories and installs the build dependencies for . If the package is not in the repositories it will return an error.

aptitude install

Aptitude is an Ncurses viewer of packages installed or available. Aptitude can be used from the command line in a similar way to apt-get. Enter man aptitude for more information.

APT and aptitude...
0 0
4

I can't seem to do an update. I am getting could not resolve error. When I do a host on the URL the router is resolving it though. I was able to do this before though.

$ sudo apt-get update

Err http://security.debian.org wheezy/updates Release.gpg
Could not resolve 'security.debian.org'
Err http://http.us.debian.org wheezy Release.gpg
Could not resolve 'http.us.debian.org'
Reading package lists... Done
W: Failed to fetch http://http.us.debian.org/debian/dists/wheezy/Release.gpg Could not resolve 'http.us.debian.org'

W: Failed to fetch http://security.debian.org/dists/wheezy/updates/Release.gpg Could not resolve 'security.debian.org'

W: Some index files failed to download. They have been ignored, or old ones used instead.

$ host security.debian.org
security.debian.org has address 128.101.240.215
security.debian.org has address 128.31.0.63
security.debian.org has address 128.61.240.73
security.debian.org...

0 0
5

What does "sudo apt- get update" do? When you install packages from the command line with sudo apt- get install .. Microsoft Update Log File Location. Internet: what packages are availablewhat versions of them are availablewhere the available packages should be retrieved from. Running sudo apt- get update (or sudo aptitude update) updates this on your local system. This is the step that actually retrieves information about what packages can be installed, including what updates to currently installed packages packages are available, from Internet sources.

When you install packages with a GUI interface (the Update Manager, the Software Center, or the Synaptic Package Manager), the work of sudo apt- get update is done automatically. When you install packages from the command- line, it is not, and you should always do this yourself unless you have done so very recently. Because information about what updated versions of packages are available is obtained by running sudo apt- get...

0 0
6

Download Apt Get Install Reinstall Cydia

A small manual for download:

Click "Download Now" image upwards. Here is the link Apt Get Install Reinstall Cydia if the image doesnt shows Then, after you click the image you'll go to the 100% protected site where your download will start shortly The small window should appear. Click RUN, and thats all. Just follow the instructions of the installer.

What does "sudo apt- get update" do? When you install packages from the command line with sudo apt- get install .. Internet: what packages are availablewhat versions of them are availablewhere the available packages should be retrieved from. Running sudo apt- get update (or sudo aptitude update) updates this on your local system. This is the step that actually retrieves information about what packages can be installed, including what updates to currently installed packages packages are available, from Internet sources.

When...

0 0
7

Running sudo apt-get update simply makes sure your list of packages from all repositories and PPA's is up to date. If you do not run this command, you could be ...
askubuntu.com/questions/222348

apt-get check This command is a diagnostic tool. It does an update of the package lists and checks for broken dependencies. apt-get -f install. This ...
help.ubuntu.com/community/AptGet/Howto

Debian is an operating system and a distribution of Free Software. It is maintained and updated through the work of many users who volunteer their time and effort.
www.debian.org

This article explains how quickly you can learn to install, remove, update and search software packages using apt-get and apt-cache commands from the command
www.tecmint.com/…ds-of-apt-get-and-apt-cache-for...

Home » Tips » Run "apt-get update" and "apt-get upgrade" In One Command Under...

0 0
8

software sources? - nanook - 5th February 2013

It's installed but...
I seem not to have any software sources for updates, additional software, etc.. The Muon Update Manager (trying to check for updates), "Failed to download http://archive.canonical.com/ubuntu/dists/dryland-te/partner/binary-i386/Packages 404 Not Found [IP: 91.189.92.191 80] Failed to download http://packages.medibuntu.org/dists/dryland-te/free/binary-i386/Packages 404 Not Found Failed to download http://packages.medibuntu.org/dists/dryland-te/non-free/binary-i386/Packages." For the entire default source list.

Synaptic just gives me the equivalent of a blank stare.

What did I break?

Charlie

System: HP Pavilion ZV6100 CTO
AMD Athlon 64 3200+ (2000 Mhz)
2 GB DDR PC2700
Hitachi 160 GB internal drive
Seagate ST9640423S 640 GB USB (this is where Netrunner 12.12 lives
ext4 filesystem formatted by G Parted.)

RE: software sources? - starbuck - 5th...
0 0
9

A Google search can give you the definition for almost any terminal command, as can --help in the terminal. For example,

apt-get --help

sudo apt-get update essentially has three parts:

sudo

performs the following command with super-user (root) capabilities. Many actions that require modifying system files or installing applications require extra permissions to go through.

apt-get

is a command-line tool which Ubuntu uses to install, remove, and manage software packages

update

is an option for the apt-get program to use which updates the package lists from a server on the internet. The package lists provide the apt-get utility with important information about the software packages that you can install using apt-get. apt-get uses these lists to determine which software to install when given a command to install. For example

sudo apt-get install guake

would install the Guake terminal as it is currently listed in my computer's local software lists....

0 0
10

Ubuntu is incredibly hostile to authenticating proxies. I use an Ubuntu laptop at work and the number of breakages is incredible.

Synaptic, Apt, Firefox, Chromium, etc all use different methods for specifying a proxy and there's nowhere to specify credentials securely.

Some bugs on the subject : https://bugs.edge.launchpad.net/ubuntu/+source/msttcorefonts/+bug/220070

https://bugs.edge.launchpad.net/ubuntu/+source/apt-cacher/+bug/198138

https://bugs.edge.launchpad.net/ubuntu/+source/apt/+bug/433827

https://bugs.edge.launchpad.net/ubuntu/+source/b43-fwcutter/+bug/683630

Oli's suggestion to use an export is the only vaguely secure way to do it. It's also sometimes possible to "fudge" proxy support if the proxy server is using secondary authentication to minimise load on the main authentication servers (say perhaps Active Directory). This is where the first proxy connection is authenticated by the proxy against AD, then for a set time period...

0 0
11

every time when try update(using sudo apt-get update) my Ubuntu i get this problem:

W: The repository 'cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: The repository 'ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)/dists/xenial/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs E: Failed to fetch cdrom://Ubuntu 16.04 LTS...
0 0
12

This sounds like it may be an issue with third party repos. I know Google's repo takes several minutes to respond here sometimes. If you have third party repos set up, open Update Manager, click Settings, then the "Other Software" tab. Uncheck all checkboxes, then hit close.

Now, fire up a terminal and use the following command and see if it is any better with the following command:

sudo apt-get update

If it is better, go back and enable each repo and recheck one by one until you find the problem repo.

If that does not work, you can have the update manager select the best main repos to use automatically. To do that, open Update Manager, then click Settings. Select the Ubuntu Software tab, then in the "Download from:" dropdown, select Other...

Now, in the window that pops up, click "Select Best Server"

It will then perform several tests to select the best server for you. Once it is completed, just click Choose...

0 0
13

Possible Duplicate:
apt-get update fails to fetch files, “Temporary failure resolving …” error

I know this has been covered before, but I can't seem to resolve my issue. Here is my output.

jake@KUBIE-SERVER:~$ sudo apt-get update Err http://us.archive.ubuntu.com precise InRelease Err http://us.archive.ubuntu.com precise-updates InRelease Err http://us.archive.ubuntu.com precise-backports InRelease Err http://security.ubuntu.com precise-security InRelease Err http://archive.canonical.com precise InRelease Err http://ppa.launchpad.net precise InRelease Err http://archive.canonical.com precise Release.gpg Temporary failure resolving 'archive.canonical.com' Err http://ppa.launchpad.net precise Release.gpg Temporary failure resolving 'ppa.launchpad.net' Err http://security.ubuntu.com precise-security Release.gpg Temporary failure resolving 'security.ubuntu.com' Err http://us.archive.ubuntu.com precise Release.gpg Temporary failure resolving 'us.archive.ubuntu.com'...
0 0
14

Assume you already have a Raspberry Pi configured as a WIFI router like mine shown below, but you live in China and have to deal with the fact that many websites can’t be accessed due to GFW. Don’t be despair and with some hacking you can get your Internet freedom back.

The mechanism is to use shadowsocks on your router which directs any traffic to a shadowsocks server in the free world. It’s simple to get it up and running on a local machine, but on a router you need to use redsocks to redirect traffic to the shadowsocks client running on your Raspberry Pi. DNS traffic has to be routed by redsocks as well otherwise your DNS replies will be contaminated. To remain as fast as normal when accessing China websites you also need to skip routing traffic to Redsocks for anything within the China IP ranges. Even if you don’t care about performance, this is still necessary in some circumstances like geoip restriction such as tv.sohu.com does not deliver contents if you live...

0 0
15

Shutter is available for any major GNU/Linux distribution and can be installed using your package manager. If you want to upgrade to the latest release, you can find installation instructions in our download section.

Ubuntu PPA repository (recommended):

We are using Launchpad to distribute the different versions of Shutter. If you’re on Ubuntu, you can install it by clicking below:

Alternatively, add our PPA – and you’ll be automatically notified of available updates.

A detailed guide on installing from the PPA is available here, though you can also install using these directions:

sudo add-apt-repository ppa:shutter/ppa
sudo apt-get update && sudo apt-get install shutter

Unstable versions can be found here (Please note: the software in this archive may still have critical bugs):

sudo add-apt-repository ppa:shutter-testing-team/ppa
sudo apt-get update && sudo apt-get install shutter

We also have a PPA with daily...

0 0
16

The first stable release of Elementary OS Luna has charmed a lot of Linux users with its sheer beauty. Many people have dubbed it as the Mac OS for Linux. While there are ways you can make Linux look like Mac OS, Elementary OS has the look and charm of its own. In the series of Elementary OS articles, I showed you how to create a live USB of Elementary OS in Ubuntu and how to install Elementary OS Luna in dual boot with Windows. Continuing my experimentation, I’ll show you 10 things to to after installing Elementary OS Luna.

10 Things to do after installing Elementary OS Luna:

After installing any new OS, the common question that ponders any user is, what to do next? Usually a new OS requires a lot of application to install or configuration to tweak. In a similar article, I listed 10 things to do after installing Ubuntu 13.04 and here goes my list of essential things to do after installing Elementary OS Luna:

Check for updates:

The first and...

0 0
17
I

am a new Linux user and student who used to write C or C++ programs on MS-Windows. Now, I am using Ubuntu Linux. How can I compile a C or C++ program on Linux operating systems using bash Terminal application?


To compile a C or C++ program on any Linux distro such as Ubuntu, Red Hat, Fedora, Debian and other Linux distro you need to install:


GNU C and C++ compiler collection Development tools Development libraries IDE or text editor to write programs

Step #1: Install C/C++ compiler and related tools

If you are using Fedora, Red Hat, CentOS, or Scientific Linux, use the following yum command to install GNU c/c++ compiler:
# yum groupinstall 'Development Tools'
If you are using Debian or Ubuntu Linux, type the following apt-get command to install GNU c/c++ compiler:
$ sudo apt-get update
$ sudo apt-get install build-essential manpages-dev

Step #2: Verify installation

Type the following command to display...

0 0