• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Syntaxfehler bei apt update auf 9.3

Status
Für weitere Antworten geschlossen.

Erischa

Member
Hallo,
ich möchte nach Anleitung ein apt update von 9.2 auf 9.3 durchführen.
Ich habe alles bis zum Schritt 10 durchgeführt und auf Version 9.3 angepasst.
Bei einem apt update erscheint folgende Fehlermeldung in der Konsole

Code:
update # apt update
E: Syntaxfehler /etc/apt/apt.conf.d/apt.conf:14: Unnötiger Müll nach Wert
E: Syntaxfehler /etc/apt/apt.conf.d/apt.conf:14: Unnötiger Müll nach Wert
dhcppc0:~/update #

Meine apt.conf

Code:
// with "apt-config dump" all settings can be viewed

Acquire::CDROM::Copy "true";

Debug
{
    pkgRPMPM "false";
}

RPM
{
    Hold { "kernel-default"; };  ändern zu // Hold { "kernel-default"; };
    ...
}

// Directory layout
Dir "/"
{
  // Location of the state dir
  State "local/state/apt/"
  {
    lists "lists-9.3/";
    status "/local/status";
    ...
 };

 // Location of the cache dir
 Cache "local/cache/apt/" {
    archives "archives-9.3/";
    srcpkgcache "srcpkgcache-9.3.bin";
    pkgcache "pkgcache-9.3.bin";
 };
...
};

Die Linie 14 ist das Zeichen "}" am Schluss

Code:
{
    Hold { "kernel-default"; };  ändern zu // Hold { "kernel-default"; };
    ...
}

hier noch die ältere apt.conf

Code:
// with "apt-config dump" all settings can be viewed

Acquire::CDROM::Copy "true";

Debug
{
    pkgRPMPM "false";
}

RPM
{
   // Hold (do not update) a list with pkgs:
   Hold { "kernel-default"; "kernel-source"; };
   Hold { "kernel-smp"; kernel-default"; "kernel-source");
   // Leave list empty to disable
   
   Ignore {"gpg-pubkey"; };

   Options { };
   Install-Options "";
   Erase-Options "";
   Source {
       Build-Command "rpmbuild --rebuild";
   };
}// Directory layout
Dir "/"
{
  // Location of the state dir
  State "local/state/apt/"
  {
    lists "lists-9.3/";
    status "/local/status";
    ...
 };

 // Location of the cache dir
 Cache "local/cache/apt/" {
    archives "archives-9.3/";
    srcpkgcache "srcpkgcache-9.3.bin";
    pkgcache "pkgcache-9.3.bin";
 };
...
};

an was liegt der Fehler beim apt.conf ?

vielen Dank für die Antworten
 

}-Tux-{

Hacker
Erischa schrieb:
Die Linie 14 ist das Zeichen "}" am Schluss

Code:
{
    Hold { "kernel-default"; };  ändern zu // Hold { "kernel-default"; };
    ...
}

jaja... immer dieses copy & paste ohne genau zu lesen :wink:
du sollst
Hold { "kernel-default"; };
wie folgt ändern:
// Hold { "kernel-default"; };


mfg }-Tux-{
 
Status
Für weitere Antworten geschlossen.
Oben