Проблемы при обновлении, связанные со сторонними репозиториями в Ubuntu 14.04

Это изображение, которое я получаю после установки новых обновлений. Я хочу перейти на 14.04 с 16.04, но после этого ничего не происходит. Я новичок в Ubuntu и не знаю, что делать дальше.

Screenshot

Я попробовал следующие команды:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -f

Это то, что я получаю в конце после использования трех коды:

Screenshot

sparsh@sparsh-Inspiron-3558:~$ sudo apt-get update
[sudo] password for sparsh: 
Ign http://dl.google.com stable InRelease
Ign http://oem.archive.canonical.com trusty-oem InRelease                      
Hit http://dl.google.com stable Release.gpg                                    
Ign http://archive.ubuntu.com trusty InRelease                                 
Hit http://oem.archive.canonical.com trusty-oem Release.gpg                    
Hit http://oem.archive.canonical.com trusty-oem Release                        
Hit http://dl.google.com stable Release                                        
Hit http://archive.ubuntu.com trusty-updates InRelease                         
Hit http://oem.archive.canonical.com trusty-oem/public Sources                 
Hit http://dl.google.com stable/main amd64 Packages                            
Hit http://archive.ubuntu.com trusty-backports InRelease                       
Hit http://oem.archive.canonical.com trusty-oem/public amd64 Packages          
Hit http://oem.archive.canonical.com trusty-oem/public i386 Packages           
Hit http://archive.ubuntu.com trusty Release.gpg                               
Hit http://archive.ubuntu.com trusty-updates/restricted Sources                
Hit http://archive.ubuntu.com trusty-updates/main Sources                      
Hit http://archive.ubuntu.com trusty-updates/universe Sources                  
Hit http://archive.ubuntu.com trusty-updates/multiverse Sources                
Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages         
Ign http://oem.archive.canonical.com trusty-oem/public Translation-en_IN       
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages               
Ign http://oem.archive.canonical.com trusty-oem/public Translation-en          
Ign http://dl.google.com stable/main Translation-en_IN                         
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages           
Hit http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages         
Ign http://dl.google.com stable/main Translation-en                            
Hit http://archive.ubuntu.com trusty-updates/restricted i386 Packages          
Hit http://archive.ubuntu.com trusty-updates/main i386 Packages                
Hit http://archive.ubuntu.com trusty-updates/universe i386 Packages            
Hit http://archive.ubuntu.com trusty-updates/multiverse i386 Packages          
Hit http://archive.ubuntu.com trusty-updates/main Translation-en               
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en         
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en         
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en           
Hit http://archive.ubuntu.com trusty-backports/restricted Sources              
Hit http://archive.ubuntu.com trusty-backports/universe Sources                
Hit http://archive.ubuntu.com trusty-backports/multiverse Sources              
Hit http://archive.ubuntu.com trusty-backports/main Sources                    
Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages       
Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages         
Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages       
Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages             
Hit http://archive.ubuntu.com trusty-backports/restricted i386 Packages        
Hit http://archive.ubuntu.com trusty-backports/universe i386 Packages          
Hit http://archive.ubuntu.com trusty-backports/multiverse i386 Packages        
Hit http://archive.ubuntu.com trusty-backports/main i386 Packages              
Ign http://archive.canonical.com trusty InRelease                              
Hit http://archive.canonical.com trusty Release.gpg                            
Hit http://archive.ubuntu.com trusty-backports/main Translation-en             
Hit http://archive.canonical.com trusty Release                                
Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en       
Hit http://archive.canonical.com trusty/partner Sources                        
Hit http://archive.canonical.com trusty/partner amd64 Packages                 
Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en       
Hit http://archive.canonical.com trusty/partner i386 Packages                  
Hit http://archive.canonical.com trusty/partner Translation-en                 
Hit http://archive.ubuntu.com trusty-backports/universe Translation-en         
Hit http://archive.ubuntu.com trusty Release                                   
Hit http://archive.ubuntu.com trusty/restricted Sources                        
Hit http://archive.ubuntu.com trusty/main Sources                              
Hit http://archive.ubuntu.com trusty/universe Sources                          
Hit http://archive.ubuntu.com trusty/multiverse Sources                        
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages                 
Hit http://archive.ubuntu.com trusty/main amd64 Packages                       
Hit http://archive.ubuntu.com trusty/universe amd64 Packages                   
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages                 
Hit http://archive.ubuntu.com trusty/restricted i386 Packages                  
Hit http://archive.ubuntu.com trusty/main i386 Packages                        
Hit http://security.ubuntu.com trusty-security InRelease                       
Hit http://security.ubuntu.com trusty-security/restricted Sources              
Hit http://archive.ubuntu.com trusty/universe i386 Packages                    
Hit http://security.ubuntu.com trusty-security/main Sources                    
Hit http://archive.ubuntu.com trusty/multiverse i386 Packages                  
Hit http://security.ubuntu.com trusty-security/universe Sources                
Hit http://security.ubuntu.com trusty-security/multiverse Sources              
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages       
Hit http://archive.ubuntu.com trusty/main Translation-en                       
Hit http://security.ubuntu.com trusty-security/main amd64 Packages             
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages         
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages       
Hit http://archive.ubuntu.com trusty/multiverse Translation-en                 
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages        
Hit http://security.ubuntu.com trusty-security/main i386 Packages              
Hit http://security.ubuntu.com trusty-security/universe i386 Packages          
Hit http://archive.ubuntu.com trusty/restricted Translation-en                 
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages        
Hit http://security.ubuntu.com trusty-security/main Translation-en             
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en       
Hit http://security.ubuntu.com trusty-security/restricted Translation-en       
Hit http://security.ubuntu.com trusty-security/universe Translation-en         
Hit http://archive.ubuntu.com trusty/universe Translation-en                   
Ign http://archive.ubuntu.com trusty/main Translation-en_IN                    
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_IN              
Ign http://archive.ubuntu.com trusty/restricted Translation-en_IN              
Ign http://archive.ubuntu.com trusty/universe Translation-en_IN                
Ign http://dell.archive.canonical.com trusty-dell InRelease                    
Hit http://dell.archive.canonical.com trusty-dell Release.gpg                  
Hit http://dell.archive.canonical.com trusty-dell Release                      
Hit http://dell.archive.canonical.com trusty-dell/public Sources               
Hit http://dell.archive.canonical.com trusty-dell/public amd64 Packages        
Hit http://dell.archive.canonical.com trusty-dell/public i386 Packages         
Ign http://dell.archive.canonical.com trusty-dell/public Translation-en_IN     
Ign http://dell.archive.canonical.com trusty-dell/public Translation-en        
Reading package lists... Done                                                  
sparsh@sparsh-Inspiron-3558:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 initramfs-tools : Depends: initramfs-tools-bin (>= 0.103ubuntu4.3) but 0.103ubuntu4 is installed
E: Unmet dependencies. Try using -f.
sparsh@sparsh-Inspiron-3558:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  initramfs-tools-bin
The following packages will be upgraded:
  initramfs-tools-bin
1 upgraded, 0 newly installed, 0 to remove and 264 not upgraded.
6 not fully installed or removed.
Need to get 0 B/9,172 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
E: Invalid archive signature
E: Internal error, could not locate member control.tar.{gzbz2xzlzma}
E: Prior errors apply to /var/cache/apt/archives/initramfs-tools-bin_0.103ubuntu4.3_amd64.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg-deb: error: `/var/cache/apt/archives/initramfs-tools-bin_0.103ubuntu4.3_amd64.deb' is not a debian format archive
dpkg: error processing archive /var/cache/apt/archives/initramfs-tools-bin_0.103ubuntu4.3_amd64.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/initramfs-tools-bin_0.103ubuntu4.3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
sparsh@sparsh-Inspiron-3558:~$ 

В то время как я попробовал следующую команду

sudo apt-get install synaptic

я получил следующий результат относительно неудовлетворенные зависимости и initramfs

sparsh@sparsh-Inspiron-3558:~$ sudo apt-get install synaptic
[sudo] password for sparsh: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 initramfs-tools : Depends: initramfs-tools-bin (>= 0.103ubuntu4.3) but 0.103ubuntu4 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
sparsh@sparsh-Inspiron-3558:~$ sudo apt-get -f install synaptic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 initramfs-tools : Depends: initramfs-tools-bin (>= 0.103ubuntu4.3) but 0.103ubuntu4 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
sparsh@sparsh-Inspiron-3558:~$ 

Я не знаю, как решить эту проблему initramfs

После применения команд я получаю какую-то ошибку в конце

    insserv: warning: script 'K02delllctservice' missing LSB tags and overrides
insserv: Service mountdevsubfs has to be enabled to start service hwclock
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package util-linux (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)

КАК РЕШИТЬ ЭТУ ОШИБКУ?

0
задан 12 July 2016 в 07:44

1 ответ

ПРЕДУПРЕЖДЕНИЕ: Создайте резервную копию всех своих данных прежде, чем идти дальше.

проблема, почти несомненно, что Вы используете сторонние репозитории при попытке обновить. Каждый дистрибутив Linux, кажется, повреждается при выполнении этого. Так, решение состоит в том, чтобы отключить те репозитории, удалить все их программное обеспечение, обновление, и затем повторно добавить любые репозитории и программное обеспечение, которое Вы хотите. В зависимости от того, как поврежденные вещи, Вы, возможно, должны просто скопировать все свои данные и сделать новую установку. Я много раз имел дело с этим, и это обычно сводится к последнему. Следующее является советом для попытки починить вещи и обновление, вместо того, чтобы делать чистую установку. YMMV.

Первый, я собираюсь направить Вас для чтения их, таким образом, у Вас будет лучшее понимание проблемы. Не стесняйтесь делать то, что они говорят, прежде, чем попробовать остальную часть, что находится в этом сообщении. https://help.ubuntu.com/community/Upgrades https://help.ubuntu.com/community/CleanUpgrade

Теперь, давайте перейдем к нему.

Отключают все пользовательские репозитории. В терминале введите это:

sudo mv /etc/apt/sources.list.d /etc/apt/sources.list.d.old
sudo mkdir /etc/apt/sources.list.d

в/etc/apt/sources.list могут также быть пользовательские репозитории. Так, мы скопируем старый и создадим новый.

sudo mv /etc/apt/sources.list /etc/apt/sources.list.old
sudo gedit /etc/apt/sources.list

у Вас должен теперь быть пустой документ о Вашем экране. Что Вы помещаете там? Ответить на тот вопрос, пойти https://repogen.simplylinux.ch / и выбрать Вашу страну и версию Ubuntu. Затем выберите следующее:

Примечание: Источник respositories является дополнительным, поэтому если Вы не планируете скомпилировать или программировать что-нибудь, можно пропустить их.

Ответвления Ubuntu: все они.

Обновления Ubuntu: безопасность и обновления, только.

Ubuntu Partner Repos: они предоставляют собственное программное обеспечение, которое может быть включено или отключено, когда Вы устанавливаете Ubuntu; включите им, только если Вы хотите.

Отдельно оплачиваемые предметы Ubuntu Repos: ни один из них.

третьи стороны Repos: Нет, нет, нет! Не включайте НИ ОДИН из них.

Переходят к концу страницы и щелчку, "Генерируйте Список". Скопируйте и вставьте материал в первом небольшом окне в пустой текстовый документ и сохраните его. Это должно выглядеть примерно так с источником и партнером repos включенный:

#------------------------------------------------------------------------------#
#                            OFFICIAL UBUNTU REPOS                             #
#------------------------------------------------------------------------------#


###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse 
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse 

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

Чистят локальный кэш:

sudo apt-get clean

Обновление локальный кэш:

sudo apt-get update

Мы собираемся понизить и удалить материал, который не должен быть там. Это могло бы повредить Вашу систему или потребовать некоторого действительно всестороннего восстановления. , Если Вы еще не создали резервную копию всего, сделайте это теперь.

способность Установки и удаляет локальные/устаревшие пакеты (не в репозитории, больше)

sudo apt-get install aptitude
sudo aptitude remove ?obsolete

Фиксируют любые зависимости, которые теперь отсутствуют:

sudo apt-get install -f

Удостоверяются, что у Вас все еще есть рабочая установка Ubuntu:

sudo apt-get install ubuntu-desktop

Установка и использование deborphan для удаления осиротевших пакетов.

sudo apt-get install deborphan
sudo deborphan | xargs sudo apt-get remove

Снова, зафиксируйте любые зависимости, которые теперь отсутствуют:

sudo apt-get install -f

Снова, удостоверьтесь, что у Вас все еще есть рабочая установка Ubuntu:

sudo apt-get install ubuntu-desktop

Избавляются от чего-либо, что это не там ни по какой причине:

sudo apt-get autoremove

Теперь, попытайтесь обновить, снова. Найдите и повторно добавьте дополнительные репозитории и их программное обеспечение, ТОЛЬКО ЕСЛИ Вы абсолютно имеете к.

Удачи!

0
ответ дан 12 July 2016 в 07:44
  • 1
    Это точно, что я искал! Спасибо! я предполагаю, что должен переименовать свой usb pendrive от casper-rw и назад каждый раз, когда я хочу использовать его на различном компьютере. – Led 7 February 2018 в 20:44

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

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