Was ist ein Apt-Datei-Update?


13

Ich habe diese Anweisungen befolgt und apt-filezusammen mit einigen anderen Paketen Folgendes installiert :

sudo apt-get install gnupg pbuilder ubuntu-dev-tools bzr-builddeb apt-file

Und jedes Mal, wenn ich meinen Computer starte, erhalte ich diesen Hinweis:

Apt-Datei-Update benötigt Ankündigung

Also ging ich endlich ins Terminal und tippte den Befehl:

apt-file update

Und ich habe diese Ausgabe bekommen:

apt-file is now using the user's cache directory.
If you want to switch back to the system-wide cache directory,
 run 'apt-file purge'
Downloading complete file http://gb.archive.ubuntu.com/ubuntu/dists/utopic/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 94 29.6M   94 27.8M    0     0   667k      0  0:00:45  0:00:42  0:00:03 97 29.6M   97 28.8M    0     0   677k      0  0:00:44  0:00:43  0:00:01 99 29.6M   99 29.5M    0     0   678k      0  0:00:44  0:00:44 --:--:--100 29.6M  100 29.6M    0     0   678k      0  0:00:44  0:00:44 --:--:--  738k
Downloading complete file http://gb.archive.ubuntu.com/ubuntu/dists/utopic-updates/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:-- 11 3134k   11  367k    0     0   480k      0  0:00:06 --:--:--  0:00:06 35 3134k   35 1101k    0     0   623k      0  0:00:05  0:00:01  0:00:04 53 3134k   53 1685k    0     0   609k      0  0:00:05  0:00:02  0:00:03 75 3134k   75 2373k    0     0   630k      0  0:00:04  0:00:03  0:00:01 99 3134k   99 3105k    0     0   651k      0  0:00:04  0:00:04 --:--:--100 3134k  100 3134k    0     0   652k      0  0:00:04  0:00:04 --:--:--  684k
Downloading Index http://gb.archive.ubuntu.com/ubuntu/dists/utopic/Contents-amd64.diff/Index:
No Index available.
Downloading complete file http://gb.archive.ubuntu.com/ubuntu/dists/utopic/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
File is up-to-date.
Downloading Index http://gb.archive.ubuntu.com/ubuntu/dists/utopic-updates/Contents-amd64.diff/Index:
No Index available.
Downloading complete file http://gb.archive.ubuntu.com/ubuntu/dists/utopic-updates/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
File is up-to-date.
Downloading complete file http://gb.archive.ubuntu.com/ubuntu/dists/utopic-backports/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--100  121k  100  121k    0     0   189k      0 --:--:-- --:--:-- --:--:--  189k
Downloading complete file http://security.ubuntu.com/ubuntu/dists/utopic-security/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:-- 17 2546k   17  452k    0     0   454k      0  0:00:05 --:--:--  0:00:05 46 2546k   46 1185k    0     0   593k      0  0:00:04  0:00:01  0:00:03 75 2546k   75 1918k    0     0   640k      0  0:00:03  0:00:02  0:00:01100 2546k  100 2546k    0     0   660k      0  0:00:03  0:00:03 --:--:--  660k
Downloading Index http://security.ubuntu.com/ubuntu/dists/utopic-security/Contents-amd64.diff/Index:
No Index available.
Downloading complete file http://security.ubuntu.com/ubuntu/dists/utopic-security/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
File is up-to-date.
Ignoring source without Contents File:
  http://extras.ubuntu.com/ubuntu/dists/utopic/Contents-amd64.gz
Ignoring source without Contents File:
  http://dl.google.com/linux/chrome/deb/dists/stable/Contents-amd64.gz

So sehe ich, dass es heißt:

apt-file is now using the user's cache directory.
If you want to switch back to the system-wide cache directory,
 run 'apt-file purge'

Was genau ist das apt-file? Und was bedeutet es, dass es jetzt das Cache-Verzeichnis des Benutzers verwendet? Ist das eine gute Sache? Was ist der Unterschied zwischen dem Cache-Verzeichnis des Benutzers und dem systemweiten Cache-Verzeichnis und welches sollte ich verwenden? Beeinflusst dies in irgendeiner Weise meine apt-getQuellen?


Informationen zum Betriebssystem:

Description:    Ubuntu 14.10
Release:    14.10

Paketinformationen:

apt-file:
  Installed: 2.5.2.3ubuntu1
  Candidate: 2.5.2.3ubuntu1
  Version table:
 *** 2.5.2.3ubuntu1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ utopic/universe amd64 Packages
        100 /var/lib/dpkg/status

Antworten:


20
  • apt-filewird verwendet, um zu suchen, welches Paket eine Datei bereitstellt. Betrachten Sie es als die Offline- und etwas eingeschränkte Version von http://packages.ubuntu.com .
  • Da hast du apt-file updateohne verwendetsudo , kann (normalerweise /var/cache/apt/apt-file) kein systemweites Verzeichnis verwendet werden. Stattdessen wird ein Verzeichnis in Ihrem Heimverzeichnis ( ~/.cache/apt-file) verwendet.
  • Suchen durch andere Benutzer können den Cache Ihres Benutzers nicht verwenden.
  • Wenn Sie der einzige Benutzer sind, spielt es keine Rolle, welchen Cache Sie haben apt-file verwenden, solange Sie konsequent vorgehen sudo(oder nicht).
  • apt-getund apt-fileteilen Quellen, aber keiner der anderen betrifft.

Also, was genau wird apt-fileheruntergeladen? Nur im Grunde ein Katalog? Oder lädt es tatsächlich eines der Pakete herunter?

1
@ ParanoidPanda-Katalog. Es ist vorhanden, um Informationen zu Paketen bereitzustellen, nicht um diese zu installieren.
— Muru

@ParanoidPanda iirc Eine der Dateien in einem Repository ist eine Liste der Dateien nach Paket mit ihren Hashes.
— Muru

Wenn es also einfach so passiert wäre, dass eines der Pakete bösartig war oder Probleme verursachte, hätte ich es nicht bekommen, sondern nur die Informationen darüber?

@ ParanoidPanda ja.
— Muru
Durch die Nutzung unserer Website bestätigen Sie, dass Sie unsere Cookie-Richtlinie und Datenschutzrichtlinie gelesen und verstanden haben.
Licensed under cc by-sa 3.0 with attribution required.