Невозможно обновить apt-get, Synaptic для apt и muon не запускается, никак не используя терминал

Я довольно новичок в использовании Linux и использую, чтобы испортить мою систему тестирования и попыток. Таким образом, Synaptic не запускается, так как все, что я должен получить пакеты и обновления.

Вот сообщение об ошибке, которое я получил (английский не мой родной язык, будьте добры с моим уровнем, пожалуйста)

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

Перевод с французского это :value followed by illicit things!! Упс Что такое незаконные вещи? Я не бандит. Я проверил etc/apt/apt.conf.dвот файл:

# 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

Для меня это похоже на китайский, и, поскольку я использовал по крайней мере 10 переустановок с моего ПК с момента использования Linux, но, поверьте, я не буду изменять этот файл в одиночку. Я сделал все возможное, чтобы найти информацию, и я нашел объяснение, что Synaptic, кажется, перезаписывает в этом файле (я не знаю), что приводит к ситуации, делающей обновление и обновление невозможным. Вот эта ссылка: http://www.hyjoo.com/sujet-32191.html

Кто-нибудь знает, от чего я страдаю?

1 ответ

Похоже файл apt-file.conf закончено в каталоге /etc/apt/apt.conf.d/ вместо каталога /etc/apt

Попробуйте переместить это

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

Может быть, лучше, если вы проверите, прежде чем он не существует в /etc/apt и в случае, если вы решите, что вы хотите сохранить.

Другие вопросы по тегам