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 / 757781
Accepted
Digger
Digger
Asked: 2023-09-30 04:14:42 +0800 CST2023-09-30 04:14:42 +0800 CST 2023-09-30 04:14:42 +0800 CST

Onde o Aptitude registra seus avisos?

  • 772

Aptidão versão 0.8.7

Debian 9 (esticar)

Durante uma atualização recente do pacote, a GUI do Aptitude exibiu o seguinte aviso, em caixa e em vermelho brilhante:

W: APT had planned for dpkg to do more than it reported back...

O referido aviso exibido também continha informações sobre o número de ações planejadas versus o número de ações executadas, bem como informações sobre qual pacote específico foi afetado, mas eu estupidamente reconheci o grito antes de registrar essas informações adicionais (pensando que poderia referenciar um log em algum lugar).

Bem, não consigo encontrar o arquivo de log adequado. Para sua informação, /var/log/aptitude mostra a atividade recente, mas a mensagem de aviso do assunto está ausente ...

Os três links a seguir podem fornecer algumas dicas, mas ainda não consigo encontrar o log desejado:

https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1647638

https://askubuntu.com/questions/1378118/apt-had-planned-for-dpkg-to-do-more-than-it-reported-back

https://groups.google.com/g/linux.debian.bugs.dist/c/n74RYhzpzNM

Onde posso encontrar o arquivo de log desejado?

debian
  • 2 2 respostas
  • 97 Views

2 respostas

  • Voted
  1. Best Answer
    tink
    2023-09-30T05:31:54+08:002023-09-30T05:31:54+08:00

    Não há nenhum - o aptitude não grava erros ou avisos no disco por padrão. Tudo o que acontece /var/log/aptitudesão instalações.

    Se você quiser registro extra, você precisa informar aptitudeisso.

    De man aptitude:

       --log-file=<file>
           If <file> is a nonempty string, log messages will be written to it, except that if
           <file> is “-”, the messages will be written to standard output instead. If this option
           appears multiple times, the last occurrence is the one that will take effect.
    
           This does not affect the log of installations that aptitude has performed
           (/var/log/aptitude); the log messages written using this configuration include
           internal program events, errors, and debugging messages. See the command-line option
           --log-level to get more control over what gets logged.
    
           This corresponds to the configuration option Aptitude::Logging::File.
    
       --log-level=<level>, --log-level=<category>:<level>
           --log-level=<level> causes aptitude to only log messages whose level is <level> or
           higher. For instance, setting the log level to error will cause only messages at the
           log levels error and fatal to be displayed; all others will be hidden. Valid log
           levels (in descending order) are off, fatal, error, warn, info, debug, and trace. The
           default log level is warn.
    
           --log-level=<category>:<level> causes messages in <category> to only be logged if
           their level is <level> or higher.
    
           --log-level may appear multiple times on the command line; the most specific setting
           is the one that takes effect, so if you pass --log-level=aptitude.resolver:fatal and
           --log-level=aptitude.resolver.hints.match:trace, then messages in
           aptitude.resolver.hints.parse will only be printed if their level is fatal, but all
           messages in aptitude.resolver.hints.match will be printed. If you set the level of the
           same category two or more times, the last setting is the one that will take effect.
    
           This does not affect the log of installations that aptitude has performed
           (/var/log/aptitude); the log messages written using this configuration include
           internal program events, errors, and debugging messages. See the command-line option
           --log-file to change where log messages go.
    
           This corresponds to the configuration group Aptitude::Logging::Levels.
    

    [editar] OK... tentar levar você até a água e fazer você beber está demorando muito:

    Basta criar o arquivo /etc/apt/apt.conf.d/50aptitudecom o seguinte conteúdo - o que também evitará que você precise usar opções de linha de comando:

    Aptitude::Logging::File "/var/log/aptitude.out";
    Aptitude::Logging::Levels "*:info";
    
    • 2
  2. Digger
    2023-10-03T05:47:54+08:002023-10-03T05:47:54+08:00

    Aqui está o que funcionou para mim:

    Sempre que eu ligo Aptitude , eu uso

    aptitude --log-file=/tmp/AptitudeLog.log --log-level=info

    Então, como nunca me lembrarei de onde procurar se precisar de alguma informação de log associada, deixei links para o arquivo de log temporário acima /var/loge/var/log/apt

    Fim do problema!

    • 1

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