AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / ubuntu / Perguntas / 1539672
Accepted
Luigi Palumbo
Luigi Palumbo
Asked: 2025-01-29 01:29:42 +0800 CST2025-01-29 01:29:42 +0800 CST 2025-01-29 01:29:42 +0800 CST

Ubuntu 24.04.1 - Problema de dependência para libsasl2-dev [duplicado]

  • 772
Esta pergunta já tem respostas aqui :
Incapaz de corrigir problemas, você segurou pacotes quebrados (16 respostas)
Fechado há 22 dias .

Estou tentando instalar libsasl2-devno meu laptop (Ubuntu 24.04.1 LTS). No entanto, quando executo o comando

sudo apt install libsasl2-dev

Recebo uma mensagem de erro:

The following packages have unmet dependencies:
 libsasl2-dev : Depends: libsasl2-2 (= 2.1.28+dfsg1-5ubuntu3) but 2.1.28+dfsg1-5ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Alguma sugestão para debug ou correções potenciais? Tentei pesquisar, mas não consegui encontrar nada relevante...

apt
  • 1 1 respostas
  • 37 Views

1 respostas

  • Voted
  1. Best Answer
    Luigi Palumbo
    2025-01-29T01:53:42+08:002025-01-29T01:53:42+08:00

    Depois de mais pesquisas, descobri que a melhor solução era fazer downgrade do libsasl2-2. Para ser guiado por esse processo, usei o aptitude.

    A solução completa, incluindo a saída interativa com aptitude:

    user@pc: sudo apt install aptitude
    
    user@pc: sudo aptitude install libsasl2-dev
    The following NEW packages will be installed:
      libsasl2-dev{b} 
    0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 243 kB of archives. After unpacking 896 kB will be used.
    The following packages have unmet dependencies:
     libsasl2-dev : Depends: libsasl2-2 (= 2.1.28+dfsg1-5ubuntu3) but 2.1.28+dfsg1-5ubuntu3.1 is installed
    The following actions will resolve these dependencies:
    
         Keep the following packages at their current version:
    1)     libsasl2-dev [Not Installed]                       
    
    
    
    Accept this solution? [Y/n/q/?] n
    The following actions will resolve these dependencies:
    
         Downgrade the following packages:                                            
    1)     libsasl2-2 [2.1.28+dfsg1-5ubuntu3.1 (now) -> 2.1.28+dfsg1-5ubuntu3 (noble)]
    
    
    
    Accept this solution? [Y/n/q/?] y
    The following packages will be DOWNGRADED:
      libsasl2-2 
    The following NEW packages will be installed:
      libsasl2-dev 
    0 packages upgraded, 1 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
    Need to get 296 kB of archives. After unpacking 896 kB will be used.
    Do you want to continue? [Y/n/?] y
    Get: 1 http://archive.ubuntu.com/ubuntu noble/main amd64 libsasl2-2 amd64 2.1.28+dfsg1-5ubuntu3 [53,2 kB]
    Get: 2 http://archive.ubuntu.com/ubuntu noble/main amd64 libsasl2-dev amd64 2.1.28+dfsg1-5ubuntu3 [243 kB]
    Fetched 296 kB in 31s (9.610 B/s) 
    dpkg: warning: downgrading libsasl2-2:amd64 from 2.1.28+dfsg1-5ubuntu3.1 to 2.1.28+dfsg1-5ubuntu3
    (Reading database ... 507114 files and directories currently installed.)
    Preparing to unpack .../libsasl2-2_2.1.28+dfsg1-5ubuntu3_amd64.deb ...
    Unpacking libsasl2-2:amd64 (2.1.28+dfsg1-5ubuntu3) over (2.1.28+dfsg1-5ubuntu3.1) ...
    Selecting previously unselected package libsasl2-dev.
    Preparing to unpack .../libsasl2-dev_2.1.28+dfsg1-5ubuntu3_amd64.deb ...
    Unpacking libsasl2-dev (2.1.28+dfsg1-5ubuntu3) ...
    Setting up libsasl2-2:amd64 (2.1.28+dfsg1-5ubuntu3) ...
    Setting up libsasl2-dev (2.1.28+dfsg1-5ubuntu3) ...
    Processing triggers for man-db (2.12.0-4build2) ...
    Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
    
    • 0

relate perguntas

  • Como posso ver todas as versões de um pacote que estão disponíveis no arquivo?

  • Como os PPAs podem ser removidos?

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve