[Resolvido] Erro com o Dpkg

juacyjuacy Juacy Willian
editado setembro 2012 em Sistema
Olá a todos, eu uso o linux mint 13 com Cinnamon, e estou tendo problemas com o dpkg.
sempre que eu digito no terminal os comandos "sudo apt-get update && sudo apt-get upgrade" aparece essas mensagens de erro: (somente a mensagem de erro)

dpkg: error: erro de configuração: /etc/dpkg/dpkg.cfg.d/multiarch:1: opção desconhecida 'foreign-architecture'
cups falhou na preconfiguração com estado de saída 2
dpkg: error: erro de configuração: /etc/dpkg/dpkg.cfg.d/multiarch:1: opção desconhecida 'foreign-architecture'
dpkg: error: erro de configuração: /etc/dpkg/dpkg.cfg.d/multiarch:1: opção desconhecida 'foreign-architecture'
dpkg: error: erro de configuração: /etc/dpkg/dpkg.cfg.d/multiarch:1: opção desconhecida 'foreign-architecture'
dpkg: error: erro de configuração: /etc/dpkg/dpkg.cfg.d/multiarch:1: opção desconhecida 'foreign-architecture'
dpkg: error: erro de configuração: /etc/dpkg/dpkg.cfg.d/multiarch:1: opção desconhecida 'foreign-architecture'
E: Sub-process /usr/bin/dpkg returned an error code (2)

e quando eu digito só o "sudo apt-get update" aparece essa: (tudo que aparece)

Ign http://packages.linuxmint.com maya InRelease
Atingido http://packages.medibuntu.org precise InRelease
Ign http://security.ubuntu.com precise-security InRelease
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Obter:1 http://ftp.debian.org testing InRelease [207 kB]
Ign http://archive.canonical.com precise InRelease
Obter:2 http://packages.linuxmint.com maya Release.gpg [197 B]
Obter:3 http://packages.linuxmint.com maya Release [17,7 kB]
Atingido http://archive.ubuntu.com precise Release.gpg
Obter:4 http://security.ubuntu.com precise-security Release.gpg [198 B]
Atingido http://archive.canonical.com precise Release.gpg
Atingido http://packages.medibuntu.org precise/free amd64 Packages
Obter:5 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Obter:6 http://security.ubuntu.com precise-security Release [49,6 kB]
Atingido http://archive.canonical.com precise Release
Atingido http://archive.ubuntu.com precise Release
Atingido http://archive.canonical.com precise/partner amd64 Packages
Atingido http://packages.medibuntu.org precise/non-free amd64 Packages
Obter:7 http://archive.ubuntu.com precise-updates Release [49,6 kB]
Ign http://archive.canonical.com precise/partner TranslationIndex
Obter:8 http://security.ubuntu.com precise-security/main amd64 Packages [169 kB]
Ign http://packages.medibuntu.org precise/free TranslationIndex
Obter:9 http://packages.linuxmint.com maya/main amd64 Packages [18,0 kB]
Ign http://packages.medibuntu.org precise/non-free TranslationIndex
Atingido http://archive.ubuntu.com precise/main amd64 Packages
Atingido http://archive.ubuntu.com precise/restricted amd64 Packages
Atingido http://archive.ubuntu.com precise/universe amd64 Packages
Atingido http://archive.ubuntu.com precise/multiverse amd64 Packages
Atingido http://archive.ubuntu.com precise/main TranslationIndex
Atingido http://archive.ubuntu.com precise/multiverse TranslationIndex
Ign http://ftp.debian.org testing InRelease
Atingido http://archive.ubuntu.com precise/restricted TranslationIndex
Atingido http://archive.ubuntu.com precise/universe TranslationIndex
Obter:10 http://archive.ubuntu.com precise-updates/main amd64 Packages [393 kB]
Atingido http://ftp.debian.org testing/main Sources/DiffIndex
Obter:11 http://security.ubuntu.com precise-security/restricted amd64 Packages [3.969 B]
Obter:12 http://security.ubuntu.com precise-security/universe amd64 Packages [46,4 kB]
Atingido http://ftp.debian.org testing/contrib Sources/DiffIndex
Atingido http://ftp.debian.org testing/non-free Sources/DiffIndex
Atingido http://ftp.debian.org testing/main amd64 Packages/DiffIndex
Atingido http://ftp.debian.org testing/contrib amd64 Packages/DiffIndex
Atingido http://ftp.debian.org testing/non-free amd64 Packages/DiffIndex
Ign http://ftp.debian.org testing/contrib TranslationIndex
Atingido http://ftp.debian.org testing/main TranslationIndex
Ign http://ftp.debian.org testing/non-free TranslationIndex
Obter:13 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2.180 B]
Atingido http://security.ubuntu.com precise-security/main TranslationIndex
Atingido http://security.ubuntu.com precise-security/multiverse TranslationIndex
Atingido http://security.ubuntu.com precise-security/restricted TranslationIndex
Atingido http://security.ubuntu.com precise-security/universe TranslationIndex
Atingido http://ftp.debian.org testing/contrib Translation-en
Atingido http://ftp.debian.org testing/main Translation-pt_BR
Atingido http://ftp.debian.org testing/main Translation-pt
Atingido http://ftp.debian.org testing/main Translation-en
Atingido http://ftp.debian.org testing/non-free Translation-en
Obter:14 http://packages.linuxmint.com maya/upstream amd64 Packages [10,6 kB]
Obter:15 http://packages.linuxmint.com maya/import amd64 Packages [41,1 kB]
Atingido http://security.ubuntu.com precise-security/main Translation-en
Atingido http://security.ubuntu.com precise-security/multiverse Translation-en
Atingido http://security.ubuntu.com precise-security/restricted Translation-en
Atingido http://security.ubuntu.com precise-security/universe Translation-en
Ign http://packages.linuxmint.com maya/import TranslationIndex
Ign http://packages.linuxmint.com maya/main TranslationIndex
Ign http://packages.linuxmint.com maya/upstream TranslationIndex
Ign http://archive.canonical.com precise/partner Translation-pt_BR
Ign http://archive.canonical.com precise/partner Translation-pt
Ign http://archive.canonical.com precise/partner Translation-en
Ign http://ftp.debian.org testing/contrib Translation-pt_BR
Ign http://ftp.debian.org testing/contrib Translation-pt
Obter:16 http://archive.ubuntu.com precise-updates/restricted amd64 Packages [6.755 B]
Obter:17 http://archive.ubuntu.com precise-updates/universe amd64 Packages [139 kB]
Ign http://ftp.debian.org testing/non-free Translation-pt_BR
Ign http://ftp.debian.org testing/non-free Translation-pt
Obter:18 http://archive.ubuntu.com precise-updates/multiverse amd64 Packages [8.681 B]
Atingido http://archive.ubuntu.com precise-updates/main TranslationIndex
Atingido http://archive.ubuntu.com precise-updates/multiverse TranslationIndex
Atingido http://archive.ubuntu.com precise-updates/restricted TranslationIndex
Atingido http://archive.ubuntu.com precise-updates/universe TranslationIndex
Atingido http://archive.ubuntu.com precise/main Translation-pt_BR
Atingido http://archive.ubuntu.com precise/main Translation-pt
Atingido http://archive.ubuntu.com precise/main Translation-en
Atingido http://archive.ubuntu.com precise/multiverse Translation-pt_BR
Atingido http://archive.ubuntu.com precise/multiverse Translation-pt
Atingido http://archive.ubuntu.com precise/multiverse Translation-en
Atingido http://archive.ubuntu.com precise/restricted Translation-pt_BR
Atingido http://archive.ubuntu.com precise/restricted Translation-pt
Atingido http://archive.ubuntu.com precise/restricted Translation-en
Atingido http://archive.ubuntu.com precise/universe Translation-pt_BR
Atingido http://archive.ubuntu.com precise/universe Translation-pt
Atingido http://archive.ubuntu.com precise/universe Translation-en
Atingido http://archive.ubuntu.com precise-updates/main Translation-pt_BR
Atingido http://archive.ubuntu.com precise-updates/main Translation-pt
Atingido http://archive.ubuntu.com precise-updates/main Translation-en
Atingido http://archive.ubuntu.com precise-updates/multiverse Translation-pt_BR
Atingido http://archive.ubuntu.com precise-updates/multiverse Translation-pt
Atingido http://archive.ubuntu.com precise-updates/multiverse Translation-en
Atingido http://archive.ubuntu.com precise-updates/restricted Translation-pt_BR
Atingido http://archive.ubuntu.com precise-updates/restricted Translation-pt
Ign http://packages.linuxmint.com maya/import Translation-pt_BR
Ign http://packages.linuxmint.com maya/import Translation-pt
Ign http://packages.linuxmint.com maya/import Translation-en
Ign http://packages.linuxmint.com maya/main Translation-pt_BR
Atingido http://archive.ubuntu.com precise-updates/restricted Translation-en
Atingido http://archive.ubuntu.com precise-updates/universe Translation-pt_BR
Atingido http://archive.ubuntu.com precise-updates/universe Translation-pt
Atingido http://archive.ubuntu.com precise-updates/universe Translation-en
Ign http://packages.linuxmint.com maya/main Translation-pt
Ign http://packages.linuxmint.com maya/main Translation-en
Ign http://packages.linuxmint.com maya/upstream Translation-pt_BR
Ign http://packages.linuxmint.com maya/upstream Translation-pt
Ign http://packages.linuxmint.com maya/upstream Translation-en
Ign http://packages.medibuntu.org precise/free Translation-pt_BR
Ign http://packages.medibuntu.org precise/free Translation-pt
Ign http://packages.medibuntu.org precise/free Translation-en
Ign http://packages.medibuntu.org precise/non-free Translation-pt_BR
Ign http://packages.medibuntu.org precise/non-free Translation-pt
Ign http://packages.medibuntu.org precise/non-free Translation-en
Baixados 1.164 kB em 23s (50,2 kB/s)
Lendo listas de pacotes... Pronto
W: Erro GPG: http://ftp.debian.org testing InRelease: As assinaturas a seguir não puderam ser verificadas devido à chave pública não estar disponível: NO_PUBKEY AED4B06F473041FA


eu procurei no forum e em outros sites e foruns de linux e não encontrei nenhuma solução para o meu problema!!

por favor me ajudem!! sou novo no linux!

Comentários

  • editado setembro 2012
    Primeiramente seja bem vindo ao Linux Mint Brasil.
    Quando podere de uma lida na nossas [url=http://www.linuxmint.com.br/recomendacoes]Recomendações[/url] faça uma boa leitura.

    Agora em relação ao seu problema rede esse comando pra ver si resolve
    [quote]sudo rm /var/lib/apt/lists/* ; sudo rm /var/lib/apt/lists/partial/* ; sudo apt-get -f install ; sudo apt-get clean ; sudo apt-get update ; sudo apt-get upgrade[/quote]
    E depois esse aqui
    [quote]sudo dpkg --configure -a[/quote]

    Si ainda continuar com o problema e por causa disso aqui:
    [code]Obter:1 http://ftp.debian.org testing InRelease [207 kB] [/code]

    Entre na [b]sources.list[/b] com esse comando
    [quote]sudo gedit /etc/apt/sources.list[/quote]
    e faça a remoção do repositório do [b]ftp.debian.org testing[/b]

    E depois rode novamente o primeiro comando para ver si funcionou.

    Ate mais......
  • juacyjuacy Juacy Willian
    editado setembro 2012
    [quote]sudo apt-get update
    [sudo] password for juacy:
    Ign http://packages.linuxmint.com maya InRelease
    Atingido http://packages.medibuntu.org precise InRelease
    Ign http://security.ubuntu.com precise-security InRelease
    Ign http://archive.canonical.com precise InRelease
    Ign http://archive.ubuntu.com precise InRelease
    Obter:1 http://packages.linuxmint.com maya Release.gpg [197 B]
    Ign http://archive.ubuntu.com precise-updates InRelease
    Obter:2 http://security.ubuntu.com precise-security Release.gpg [198 B]
    Atingido http://archive.canonical.com precise Release.gpg
    Obter:3 http://packages.linuxmint.com maya Release [17,7 kB]
    Atingido http://archive.ubuntu.com precise Release.gpg
    Obter:4 http://security.ubuntu.com precise-security Release [49,6 kB]
    Atingido http://archive.canonical.com precise Release
    Atingido http://packages.medibuntu.org precise/free amd64 Packages
    Obter:5 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
    Atingido http://archive.canonical.com precise/partner amd64 Packages
    Atingido http://archive.ubuntu.com precise Release
    Obter:6 http://packages.linuxmint.com maya/main amd64 Packages [18,0 kB]
    Atingido http://packages.medibuntu.org precise/non-free amd64 Packages
    Ign http://archive.canonical.com precise/partner TranslationIndex
    Obter:7 http://archive.ubuntu.com precise-updates Release [49,6 kB]
    Obter:8 http://packages.linuxmint.com maya/upstream amd64 Packages [10,6 kB]
    Obter:9 http://packages.linuxmint.com maya/import amd64 Packages [41,1 kB]
    Obter:10 http://security.ubuntu.com precise-security/main amd64 Packages [169 kB]
    Ign http://packages.medibuntu.org precise/free TranslationIndex
    Ign http://packages.linuxmint.com maya/import TranslationIndex
    Ign http://packages.linuxmint.com maya/main TranslationIndex
    Ign http://packages.linuxmint.com maya/upstream TranslationIndex
    Atingido http://archive.ubuntu.com precise/main amd64 Packages
    Atingido http://archive.ubuntu.com precise/restricted amd64 Packages
    Atingido http://archive.ubuntu.com precise/universe amd64 Packages
    Atingido http://archive.ubuntu.com precise/multiverse amd64 Packages
    Atingido http://archive.ubuntu.com precise/main TranslationIndex
    Atingido http://archive.ubuntu.com precise/multiverse TranslationIndex
    Atingido http://archive.ubuntu.com precise/restricted TranslationIndex
    Atingido http://archive.ubuntu.com precise/universe TranslationIndex
    Obter:11 http://archive.ubuntu.com precise-updates/main amd64 Packages [395 kB]
    Obter:12 http://security.ubuntu.com precise-security/restricted amd64 Packages [3.969 B]
    Obter:13 http://security.ubuntu.com precise-security/universe amd64 Packages [46,4 kB]
    Obter:14 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2.180 B]
    Atingido http://security.ubuntu.com precise-security/main TranslationIndex
    Atingido http://security.ubuntu.com precise-security/multiverse TranslationIndex
    Atingido http://security.ubuntu.com precise-security/restricted TranslationIndex
    Atingido http://security.ubuntu.com precise-security/universe TranslationIndex
    Atingido http://security.ubuntu.com precise-security/main Translation-en
    Atingido http://security.ubuntu.com precise-security/multiverse Translation-en
    Atingido http://security.ubuntu.com precise-security/restricted Translation-en
    Ign http://packages.medibuntu.org precise/non-free TranslationIndex
    Atingido http://security.ubuntu.com precise-security/universe Translation-en
    Ign http://archive.canonical.com precise/partner Translation-pt_BR
    Ign http://archive.canonical.com precise/partner Translation-pt
    Ign http://archive.canonical.com precise/partner Translation-en
    Obter:15 http://archive.ubuntu.com precise-updates/restricted amd64 Packages [6.755 B]
    Obter:16 http://archive.ubuntu.com precise-updates/universe amd64 Packages [139 kB]
    Ign http://packages.linuxmint.com maya/import Translation-pt_BR
    Ign http://packages.linuxmint.com maya/import Translation-pt
    Ign http://packages.linuxmint.com maya/import Translation-en
    Ign http://packages.linuxmint.com maya/main Translation-pt_BR
    Ign http://packages.linuxmint.com maya/main Translation-pt
    Obter:17 http://archive.ubuntu.com precise-updates/multiverse amd64 Packages [8.681 B]
    Obter:18 http://archive.ubuntu.com precise-updates/main TranslationIndex [3.564 B]
    Obter:19 http://archive.ubuntu.com precise-updates/multiverse TranslationIndex [2.605 B]
    Obter:20 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [2.461 B]
    Obter:21 http://archive.ubuntu.com precise-updates/universe TranslationIndex [2.850 B]
    Atingido http://archive.ubuntu.com precise/main Translation-pt_BR
    Atingido http://archive.ubuntu.com precise/main Translation-pt
    Atingido http://archive.ubuntu.com precise/main Translation-en
    Atingido http://archive.ubuntu.com precise/multiverse Translation-pt_BR
    Atingido http://archive.ubuntu.com precise/multiverse Translation-pt
    Atingido http://archive.ubuntu.com precise/multiverse Translation-en
    Atingido http://archive.ubuntu.com precise/restricted Translation-pt_BR
    Atingido http://archive.ubuntu.com precise/restricted Translation-pt
    Ign http://packages.linuxmint.com maya/main Translation-en
    Ign http://packages.linuxmint.com maya/upstream Translation-pt_BR
    Ign http://packages.linuxmint.com maya/upstream Translation-pt
    Ign http://packages.linuxmint.com maya/upstream Translation-en
    Atingido http://archive.ubuntu.com precise/restricted Translation-en
    Atingido http://archive.ubuntu.com precise/universe Translation-pt_BR
    Atingido http://archive.ubuntu.com precise/universe Translation-pt
    Atingido http://archive.ubuntu.com precise/universe Translation-en
    Atingido http://archive.ubuntu.com precise-updates/main Translation-pt_BR
    Atingido http://archive.ubuntu.com precise-updates/main Translation-pt
    Atingido http://archive.ubuntu.com precise-updates/main Translation-en
    Atingido http://archive.ubuntu.com precise-updates/multiverse Translation-pt_BR
    Atingido http://archive.ubuntu.com precise-updates/multiverse Translation-pt
    Atingido http://archive.ubuntu.com precise-updates/multiverse Translation-en
    Atingido http://archive.ubuntu.com precise-updates/restricted Translation-pt_BR
    Atingido http://archive.ubuntu.com precise-updates/restricted Translation-pt
    Atingido http://archive.ubuntu.com precise-updates/restricted Translation-en
    Atingido http://archive.ubuntu.com precise-updates/universe Translation-pt_BR
    Atingido http://archive.ubuntu.com precise-updates/universe Translation-pt
    Obter:22 http://archive.ubuntu.com precise-updates/universe Translation-en [81,5 kB]
    Ign http://packages.medibuntu.org precise/free Translation-pt_BR
    Ign http://packages.medibuntu.org precise/free Translation-pt
    Ign http://packages.medibuntu.org precise/free Translation-en
    Ign http://packages.medibuntu.org precise/non-free Translation-pt_BR
    Ign http://packages.medibuntu.org precise/non-free Translation-pt
    Ign http://packages.medibuntu.org precise/non-free Translation-en
    Baixados 1.051 kB em 16s (65,1 kB/s)
    Lendo listas de pacotes... Pronto[/quote]

    [quote]sudo apt-get upgrade
    Lendo listas de pacotes... Pronto
    Construindo árvore de dependências
    Lendo informação de estado... Pronto
    Os pacotes a seguir serão mantidos em suas versões atuais:
    linux-generic linux-headers-generic linux-image-generic
    Os pacotes a seguir serão atualizados:
    apt apt-transport-https apt-utils dbus dbus-x11 ghostscript ghostscript-cups
    ghostscript-x gir1.2-dbusmenu-glib-0.4 gir1.2-dbusmenu-gtk-0.4 gnome-media
    gstreamer0.10-plugins-bad gvfs gvfs-backends gvfs-bin gvfs-common
    gvfs-daemons gvfs-fuse gvfs-libs libapt-inst1.4 libapt-pkg4.12 libdbus-1-3
    libdbusmenu-glib4 libdbusmenu-gtk3-4 libdbusmenu-gtk4 libgs9 libgs9-common
    libgstreamer-plugins-bad0.10-0 libnux-2.0-common linux-firmware
    linux-libc-dev mintupdate nux-tools python-libxml2 thunderbird
    thunderbird-gnome-support transmission-common transmission-gtk
    ubuntu-keyring xserver-common xserver-xorg-core xserver-xorg-input-evdev
    xserver-xorg-input-synaptics xserver-xorg-input-vmmouse
    xserver-xorg-video-intel xserver-xorg-video-vmware
    46 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 3 não atualizados.
    1 pacotes não totalmente instalados ou removidos.
    É preciso baixar 0 B/62,2 MB de arquivos.
    Depois desta operação, 801 kB adicionais de espaço em disco serão usados.
    Você quer continuar [S/n]? s
    Extraíndo templates de pacotes : 100%
    dpkg: error: erro de configuração: /etc/dpkg/dpkg.cfg.d/multiarch:1: opção desconhecida 'foreign-architecture'
    E: Sub-process /usr/bin/dpkg returned an error code (2)[/quote]
  • juacyjuacy Juacy Willian
    editado setembro 2012
    Não consegui executar o comando "sudo kate /etc/dpkg/dpkg.cfg.d/" então fui até o diretorio "/etc/dpkg/dpkg.cfg.d/" e encontrei apenas um arquivo chamado "MultiArch", abri o arquivo e tinha apenas uma linha escrita nele":
    [quote]foreign-architecture i386[/quote]

    sobre a pergunta do que eu poderia ter feito de anormal, a unica coisa anormal que eu me lembro de ter feito, foi seguir os passos para instalar o gimp 2.8 no Mint/ubuntu...

    eu num lembro os passos direito mas se não me engano, tinha comandos para desinstalar o gimp 2.6, comando para adicionar o repositorio ftp.debian.orb e comando para instalar o gimp 2.8..

    o lugar onde eu vi esses passos eu não lembro e nem encontrei para colocar aqui!!

    vou continuar procurando, e se encontrar eu posto o passo a passo pra ver se tem alguma coisa a ver!!
Entre ou Registre-se para fazer um comentário.