Não é possível ao apt-get update, Synaptic para apt e muon não inicia, nem mesmo usando um terminal

0

Eu sou muito novo usando o Linux e uso para atrapalhar o teste do meu sistema e tentar. Então, o synaptic não inicia como tudo o que tenho para receber pacotes e atualizações.

Aqui está a mensagem de erro que eu tinha (Inglês não é minha língua materna, seja gentil com meu nível, por favor)

E: Erreur syntaxique /etc/apt/apt.conf.d/apt-file.conf:17 : valeur suivie de choses illicites

A tradução do francês é :value followed by illicit things !! Ooops O que são coisas ilícitas? Eu não sou um bandido. Eu verifiquei etc/apt/apt.conf.d , aqui está o arquivo:

# Apt-file configuration file

# Substitutions are made as follows:
#   host => remote hostname
#   port => remote port
#   uri => complete URI from sources.list
#   path => path from /
#   dist => the distribution name
#   cache => path to the local cache dir
#   dest => the destination file name inside the cache dir
#   cdrom => cdrom mount point

# Where are located Packages
destination = <host>_<path>_dists_<dist>_Contents-<arch>.gz

# common code blocks can be defined as variables and be used as $check_cmd, etc. later
check_cmd = ( ( gunzip -l "<cache>/<dest>_tmp" >/dev/null 2>&1 || (echo "File is not gzipped."; false) ) && mv "<cache>/<dest>_tmp" "<cache>/<dest>" 2>&1 )
error_cmd = ( rm -f "<cache>/<dest>_tmp"; echo "Can't get <uri>/dists/<dist>/Contents-<arch>.gz" )
post_dl_cmd = $check_cmd || $error_cmd 


# Fetch methods using diffindex-download:
# -i : ignore missing files
# -q : be quiet
# -n <num> : download full file if more than <num> patches would be necessary
http = diffindex-download -i "<uri>/dists/<dist>/Contents-<arch>.gz" <cache>/<dest>
https = diffindex-download -i "<uri>/dists/<dist>/Contents-<arch>.gz" <cache>/<dest>
ftp = diffindex-download -i "<uri>/dists/<dist>/Contents-<arch>.gz" <cache>/<dest>
# In debtorrent URLs, we have to replace 'debtorrent' by 'http', and we always download the full file
debtorrent = diffindex-download -i -n 0 "http://<host>:<port|9988><path>/dists/<dist>/Contents-<arch>.gz" <cache>/<dest>

ssh = scp -P <port|22> "<user>@<host>:/<path>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>_tmp" && $post_dl_cmd
rsh = rcp -l <user> "<host>:/<path>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>_tmp" && $post_dl_cmd
file = cp "/<path>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>"
copy = cp "/<path>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>"
cdrom = echo "Put CDROM labeled <path> in the cdrom device and press [ENTER]" > /dev/stderr ; read DUMMY ; mount "<cdrom>"; cp "<cdrom>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>" ; umount "<cdrom>"

# Schemes that might require user input on 'apt-file update'
# These will be skipped if -N is given
interactive = cdrom rsh ssh

Isso é como o chinês para mim e, como fiz pelo menos 10 reinstalações do meu PC desde que usei o Linux, mas mantenha a fé, não modificarei esse arquivo sozinho. Fiz o meu melhor para encontrar informações e encontrei uma explicação dizendo que o Synaptic parece substituir este arquivo (não sei), o que leva a uma situação que impossibilita a atualização e a atualização. Aqui está o link: link

Alguém sabe o que estou sofrendo?

    
por user279872 09.05.2014 / 21:22

1 resposta

0

Parece que o arquivo apt-file.conf terminou no diretório /etc/apt/apt.conf.d/ , em vez do diretório /etc/apt

Tente movê-lo

sudo mv -i /etc/apt/apt.conf.d/apt-file.conf /etc/apt/

talvez seja melhor verificar antes que ele não exista em /etc/apt e caso você decida qual deseja manter.

    
por Hastur 09.05.2014 / 22:46