Upgrating от 12,10 до 14,10 перестал работать

Я получил эту ошибку при обновлении от 12,10 до 14,10:

W:Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/source/Sources  404  Not Found [IP: 91.189.91.15 80]
W:Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/restricted

Что мне делать?

0
задан 2 November 2014 в 16:46

1 ответ

Протестируйте это:

Открывают терминал,

Нажатие Ctrl + Высокий звук + Выполнение T

это:

sudo -i
nano /etc/apt/sources.list

В открытом файле.

Удаляют содержание.

Вставка следующее:

deb http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ utopic universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic universe
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ utopic multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu utopic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu utopic-security main restricted
deb http://security.ubuntu.com/ubuntu utopic-security universe
# deb-src http://security.ubuntu.com/ubuntu utopic-security universe
deb http://security.ubuntu.com/ubuntu utopic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu utopic-security multiverse
deb http://archive.canonical.com/ubuntu utopic partner
# deb-src http://archive.canonical.com/ubuntu utopic partner
deb http://extras.ubuntu.com/ubuntu utopic main
# deb-src http://extras.ubuntu.com/ubuntu utopic main
deb http://us.archive.ubuntu.com/ubuntu/ utopic-proposed universe multiverse restricted main

Ctrl + O , сохраните файл. Ctrl + X , закройте нано.

Продолжите работать:

apt-get autoremove
apt-get clean
UNUSCONF=$(dpkg -l|grep "^rc"|awk '{print $2}')
apt-get remove --purge $UNUSCONF
NEWKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
ADDKERNEL="linux-(image|headers|ubuntu-modules|restricted-modules)"
METAKERNEL="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
UNUSKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $ADDKERNEL |grep -vE $METAKERNEL|grep -v $NEWKERNEL)
apt-get remove --purge $UNUSKERNELS
apt-get update
apt-get dist-upgrade
dpkg --configure -a
apt-get -f install
apt-get clean
reboot
2
ответ дан 6 October 2019 в 21:41

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

Похожие вопросы: