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 / unix / Perguntas / 783138
Accepted
Chris Stryczynski
Chris Stryczynski
Asked: 2024-09-06 23:48:24 +0800 CST2024-09-06 23:48:24 +0800 CST 2024-09-06 23:48:24 +0800 CST

Problemas ao instalar python3.11-venv no debian 12

  • 772

Estou tendo alguns problemas tentando fazer o virtualenv funcionar no debian 12, é difícil decifrar qual é exatamente o problema. Eu executei apt updatee apt upgradetambém, é uma instalação de rede nova do Debian de apenas alguns dias atrás.

$ python3 -m venv code_execution_env
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.11-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: /home/chris/projects/claude-engineer/code_execution_env/bin/python3
$ sudo apt install -y python3.11-venv
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3.11-venv : Depends: python3.11 (= 3.11.2-6+deb12u2) but 3.11.2-6+deb12u3 is to be installed
E: Unable to correct problems, you have held broken packages.

Eu também tentei python3-venv, em vez disso, python3.11-fullpacote, mas sem sorte:

$ sudo apt-get install python3.11-full
[sudo] password for chris: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3.11-full : Depends: python3.11 (= 3.11.2-6+deb12u2) but 3.11.2-6+deb12u3 is to be installed
                   Depends: python3.11-venv (= 3.11.2-6+deb12u2) but it is not going to be installed
                   Recommends: python3.11-doc but it is not going to be installed
                   Recommends: python3.11-examples but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

política do apt-cache:

$ apt-cache policy python3.11 python3.11-venv
python3.11:
  Installed: 3.11.2-6+deb12u3
  Candidate: 3.11.2-6+deb12u3
  Version table:
 *** 3.11.2-6+deb12u3 100
        100 /var/lib/dpkg/status
     3.11.2-6+deb12u2 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
python3.11-venv:
  Installed: (none)
  Candidate: 3.11.2-6+deb12u2
  Version table:
     3.11.2-6+deb12u2 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages

Testado apt --fix-broken install:

$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded

Qualquer dica seria útil, é difícil saber se isso é apenas um problema de empacotamento do Python ou se talvez eu precise me concentrar mais no erro exato python3.11-venv : Depends: python3.11 (= 3.11.2-6+deb12u2) but 3.11.2-6+deb12u3 is to be installed.

https://tracker.debian.org/pkg/python3.11 também afirma algo preocupante:

pacote desapareceu Este pacote não está em nenhum repositório de desenvolvimento. Isso provavelmente significa que o pacote foi removido (ou foi renomeado). Portanto, as informações aqui são de pouco interesse... o pacote vai desaparecer a menos que alguém o tome e o reintroduza.

debian
  • 1 1 respostas
  • 57 Views

1 respostas

  • Voted
  1. Best Answer
    GAD3R
    2024-09-09T02:02:27+08:002024-09-09T02:02:27+08:00

    Com base na saída de apt policy, o repositório de segurança está faltando no seu sources.list.

    Edite o sources.listseguinte exemplo no wiki do Debian adicionando esta linha:

    deb http://security.debian.org/debian-security bookworm-security main 
    

    Então execute:

    sudo apt update && sudo apt dist-upgrade
    sudo apt install -y python3.11-venv
    

    Pacote: python3.11-venv (3.11.2-6+deb12u3) [segurança]

    • 2

relate perguntas

  • Configuração do GRUB para reconhecer diferentes ambientes de desktop (instalações) da mesma distribuição Linux

  • astyle não altera a formatação do arquivo de origem

  • Recebendo e-mail em um novo Debian fresco

  • Debian Stretch: gnome-software segfault em libgs_plugin_systemd-updates.so

  • Como digitar ü no Pinyin IME?

Sidebar

Stats

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

    Possível firmware ausente /lib/firmware/i915/* para o módulo i915

    • 3 respostas
  • Marko Smith

    Falha ao buscar o repositório de backports jessie

    • 4 respostas
  • Marko Smith

    Como exportar uma chave privada GPG e uma chave pública para um arquivo

    • 4 respostas
  • Marko Smith

    Como podemos executar um comando armazenado em uma variável?

    • 5 respostas
  • Marko Smith

    Como configurar o systemd-resolved e o systemd-networkd para usar o servidor DNS local para resolver domínios locais e o servidor DNS remoto para domínios remotos?

    • 3 respostas
  • Marko Smith

    apt-get update error no Kali Linux após a atualização do dist [duplicado]

    • 2 respostas
  • Marko Smith

    Como ver as últimas linhas x do log de serviço systemctl

    • 5 respostas
  • Marko Smith

    Nano - pule para o final do arquivo

    • 8 respostas
  • Marko Smith

    erro grub: você precisa carregar o kernel primeiro

    • 4 respostas
  • Marko Smith

    Como baixar o pacote não instalá-lo com o comando apt-get?

    • 7 respostas
  • Martin Hope
    user12345 Falha ao buscar o repositório de backports jessie 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl Por que a maioria dos exemplos do systemd contém WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky Como exportar uma chave privada GPG e uma chave pública para um arquivo 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll status systemctl mostra: "Estado: degradado" 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim Como podemos executar um comando armazenado em uma variável? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S Por que /dev/null é um arquivo? Por que sua função não é implementada como um programa simples? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 Como ver as últimas linhas x do log de serviço systemctl 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - pule para o final do arquivo 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla Por que verdadeiro e falso são tão grandes? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis Substitua a string em um arquivo de texto enorme (70 GB), uma linha 2017-12-30 06:58:33 +0800 CST

Hot tag

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

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