Problema ao atualizar o Ubuntu 9.10

3

Eu tenho tentado atualizar minha versão no Ubuntu de 9.10 para 10.04 (e, eventualmente, para o mais recente), mas estou tendo problemas com pacotes quebrados.

Eu tentei:

  • apt-get update
  • apt-get upgrade
  • apt-get dist-upgrade
  • dpkg --configure -a (não sei por que)

Eu não tenho certeza do que é relevante, então vou largar o que tenho:

Saída da tentativa de atualização:

$ sudo do-release-upgrade
Checking for a new ubuntu release
Done Upgrade tool signature
Done Upgrade tool
Done downloading            
extracting 'lucid.tar.gz'
authenticate 'lucid.tar.gz' against 'lucid.tar.gz.gpg' 
tar: Removing leading '/' from member names

Reading cache

Checking package manager
Reading package lists: Done
Reading state information: Done
Reading state information: Done
Reading state information: Done
Done downloading            
Reading package lists: Done
Reading state information: Done
Reading state information: Done
Reading state information: Done

Updating repository information
WARNING: Failed to read mirror file
Done downloading            

Checking package manager
Reading package lists: Donelucid-security/multiverse Packages: 96   gutsy/restricted Packages: 02  
Reading state information: Done
Reading state information: Done
Reading state information: Done

Calculating the changes

Calculating the changes

Could not calculate the upgrade 

An unresolvable problem occurred while calculating the upgrade: 
E:Unable to correct problems, you have held broken packages. 

This can be caused by: 
* Upgrading to a pre-release version of Ubuntu 
* Running the current pre-release version of Ubuntu 
* Unofficial software packages not provided by Ubuntu 

If none of this applies, then please report this bug against the 
'update-manager' package and include the files in 
/var/log/dist-upgrade/ in the bug report. 


Restoring original system state

Aborting
Reading package lists: Donekarmic-security/multiverse Packages: 95   utsy/restricted Packages: 02  
Reading state information: Done
Reading state information: Done
Reading state information: Done

/etc/apt/sources.list (com a maioria dos comentários removidos)

$ cat sources.list
# deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)]/ karmic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
deb http://us.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic main restricted

deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted

deb http://us.archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic universe
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates multiverse

# deb http://us.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse

## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu karmic partner
deb-src http://archive.canonical.com/ubuntu karmic partner

deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe
deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse

## Packages for Chrome
#deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
#deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main

## Latest PHP packages
#deb http://php53.dotdeb.org stable all
#deb-src http://php53.dotdeb.org stable all
#deb http://security.ubuntu.com/ubuntu jaunty-security main

As últimas linhas de /var/log/dist-upgrade/main.log

2011-08-02 19:21:54,211 DEBUG entry 'deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse' updated to new dist
2011-08-02 19:21:54,246 DEBUG running doUpdate() (showErrors=True)
2011-08-02 19:22:24,895 DEBUG openCache()
2011-08-02 19:22:24,895 DEBUG failed to SystemUnLock() (E:Not locked)
2011-08-02 19:22:29,991 DEBUG /openCache(), new cache size 30853
2011-08-02 19:22:29,991 DEBUG needServerMode(): run in 'desktop' mode, (because of pkg 'ubuntu-desktop')
2011-08-02 19:26:29,025 DEBUG Installing 'upstart-logd' (priority in required set 'required' but not scheduled for install)
2011-08-02 19:26:30,695 ERROR Dist-upgrade failed: 'E:Unable to correct problems, you have held broken packages.'
2011-08-02 19:26:30,696 DEBUG abort called
2011-08-02 19:26:30,697 DEBUG openCache()
2011-08-02 19:26:30,698 DEBUG failed to SystemUnLock() (E:Not locked)
2011-08-02 19:26:33,728 DEBUG /openCache(), new cache size 29182
2011-08-02 19:26:33,728 DEBUG enabling apt cron job
    
por PMV 03.08.2011 / 01:56

4 respostas

4

Eu tentaria remover a linha do CD Gutsy:

deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
    
por mikewhatever 03.08.2011 / 02:58
2

Acho que a pista está na mensagem de erro -

está reclamando sobre Gutsy estar presente. No seu arquivo sources.list você tem o CDROM como deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted d

Usando a janela Software Sources - desmarque o CDROM. Alternativamente, apenas adicione # contra esta linha em seu arquivo sources.list.

    
por fossfreedom 03.08.2011 / 05:15
1

Mais do que provavelmente, seu problema é devido à presença de pacotes PPA instalados em sua máquina. Como o PPA tem pacotes mais novos que os repositórios oficiais, o upgrade não sabe como substituí-los. Felizmente, esta é uma solução fácil com o ppa-purge. Confira o artigo abaixo ou apenas o Google ppa-purge para mais informações.

link

    
por Bryan Agee 03.08.2011 / 02:08
1

Se você tiver o aptitude sudo aptitude search ~b , terá a lista de pacotes quebrados. Você provavelmente reconhecerá quais pacotes / ppa você deve remover.

Você pode removê-los instalando a versão mais antiga depois de remover o PPA, ( apt-get install package=version ) ou pode forçá-lo a removê-lo com o dpkg force remove.

Como isso não resolveu o problema, você pode fazê-lo de maneira mais Debian. Substitua o seu conteúdo do sources.list pelo ubuntu 10.04 sources.list e execute o aptitude dist-upgrade. Você pode acabar com vários pacotes quebrados, mas poderá facilmente consertá-lo, reinstalando-os (se você não tiver nada importante configurado manualmente, você poderá limpá-los e instalá-los).

Se não funcionou, há outra opção (mas é feia):

Eu sofri um acidente com uma atualização de 8.04 para 8.10 (pacotes quebrados, a atualização parou no meio) e a solução que usei para recuperar foi remover tudo, mas ubuntu-minimal (e algumas coisas relacionadas, principalmente os drivers wifi, você pode fazer isto facilmente em ncurses ui para aptitude, simplesmente digite sudo aptitude sem qualquer parâmetro) e instale ubuntu-desktop depois de mudar para novas sources.list e atualizar o sistema via dist-upgrade.

Funcionará, já que é muito fácil atualizar o sistema mínimo e manterá sua configuração para a maioria das coisas.

Mas, neste ponto, se você tiver seu /home/ dir em uma partição separada e não tiver nada importante configurado manualmente (especialmente /etc/ dir), seria muito mais fácil instalar uma nova cópia de qualquer novo Ubuntu que você gosta.

    
por Chris Hasiński 03.08.2011 / 03:16