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[linux-mint](unix)

Martin Hope
ehwlt
Asked: 2025-04-23 18:30:12 +0800 CST

Mint: pacote quebrado, apt/Synaptic quer remover metade do sistema junto com ele

  • 10

Eu queria instalar a versão atual do ausweisapp, que requer pacotes ou versões deles que não estão no repositório do Mint 21.3, então comecei a instalar esses pacotes e suas dependências manualmente. O terceiro foi o libzstd1_1.5.4. Já havia uma versão mais antiga instalada, agora ambas estão quebradas. Se eu tentar remover um deles, o Synaptic e eu apt-get install -fqueremos remover muitos outros pacotes, tipo metade do sistema. Aptitude: Idem.

Como posso remover apenas o pacote que instalei manualmente, sem remover nada mais?


sudo apt install libzstd1{,:i386}=1.4.8+dfsg-3build1retorna:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libzstd1:i386 is already the newest version (1.4.8+dfsg-3build1).
The following packages were automatically installed and are no longer required:
  libhttp-parser2.9 libqt5qmlmodels5 libqt5qmlworkerscript5 libqt5quick5 libqt5quickcontrols2-5 libqt5quicktemplates2-5 libqt5websockets5
  qml-module-qt-labs-platform qml-module-qtgraphicaleffects qml-module-qtqml qml-module-qtqml-models2 qml-module-qtqml-statemachine qml-module-qtquick-controls
  qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtquick-templates2 qml-module-qtquick-window2 qml-module-qtquick2
Use 'sudo apt autoremove' to remove them.
The following packages will be DOWNGRADED:
  libzstd1
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 7 not upgraded.
2 not fully installed or removed.
Need to get 0 B/324 kB of archives.
After this operation, 62.5 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
dpkg: warning: downgrading libzstd1:amd64 from 1.5.4+dfsg2-5 to 1.4.8+dfsg-3build1
(Reading database ... 686126 files and directories currently installed.)
Preparing to unpack .../libzstd1_1.4.8+dfsg-3build1_amd64.deb ...
Unpacking libzstd1:amd64 (1.4.8+dfsg-3build1) over (1.5.4+dfsg2-5) ...
dpkg: error processing archive /var/cache/apt/archives/libzstd1_1.4.8+dfsg-3build1_amd64.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libzstd1/changelog.Debian.gz', which is different from other instances of package libzstd1:amd64
Errors were encountered while processing:
 /var/cache/apt/archives/libzstd1_1.4.8+dfsg-3build1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Saída de dpkg:

~ $: sudo dpkg --purge libzstd1_1.5.4
dpkg: warning: ignoring request to remove libzstd1_1.5.4 which isn't installed

~ $: sudo dpkg --purge libzstd1      
dpkg: dependency problems prevent removal of libzstd1:amd64:
 systemd depends on libzstd1 (>= 1.4.0).
 squashfs-tools depends on libzstd1 (>= 1.4.0).
 rsync depends on libzstd1 (>= 1.4.0).
 plocate depends on libzstd1 (>= 1.4.0).
 mesa-vulkan-drivers:amd64 depends on libzstd1 (>= 1.4.0).
 mesa-vdpau-drivers:amd64 depends on libzstd1 (>= 1.4.0).
 mesa-va-drivers:amd64 depends on libzstd1 (>= 1.4.0).
 libxatracker2:amd64 depends on libzstd1 (>= 1.4.0).
 libtiff5:amd64 depends on libzstd1 (>= 1.4.0).
 libsystemd0:amd64 depends on libzstd1 (>= 1.4.0).
 libsereal-encoder-perl:amd64 depends on libzstd1 (>= 1.4.0).
 libsereal-decoder-perl depends on libzstd1 (>= 1.4.0).
 libqt5core5a:amd64 depends on libzstd1 (>= 1.4.0).
 libosmesa6:amd64 depends on libzstd1 (>= 1.4.0).
 libkmod2:amd64 depends on libzstd1 (>= 1.4.0).
 libgl1-mesa-dri:amd64 depends on libzstd1 (>= 1.4.0).
 libflatpak0:amd64 depends on libzstd1 (>= 1.4.0).
 libcurl4:amd64 depends on libzstd1 (>= 1.4.0).
 libcurl3-gnutls:amd64 depends on libzstd1 (>= 1.4.0).
 libboost-iostreams1.74.0:amd64 depends on libzstd1 (>= 1.4.0).
 libarchive13:amd64 depends on libzstd1 (>= 1.4.0).
 libapt-pkg6.0:amd64 depends on libzstd1 (>= 1.4.0).
 kmod depends on libzstd1 (>= 1.4.0).
 gfortran-11 depends on libzstd1 (>= 1.4.0).
 gcc-12 depends on libzstd1 (>= 1.4.0).
 gcc-11 depends on libzstd1 (>= 1.4.0).
 g++-11 depends on libzstd1 (>= 1.4.0).
 flatpak depends on libzstd1 (>= 1.4.0).
 dpkg depends on libzstd1 (>= 1.4.0).
 cpp-12 depends on libzstd1 (>= 1.4.0).
 cpp-11 depends on libzstd1 (>= 1.4.0).
 btrfs-progs depends on libzstd1 (>= 1.4.0).

dpkg: error processing package libzstd1:amd64 (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 libzstd1:amd64
linux-mint
  • 2 respostas
  • 477 Views
Martin Hope
Chris Rogers
Asked: 2025-04-03 19:28:09 +0800 CST

É possível trocar uma instalação do Linux Mint de um laptop para o Raspberry Pi 5?

  • 7

Sou novo no uso do Linux depois de decidir limpar completamente o disco do meu laptop e fazer uma instalação limpa do Linux Mint no meu antigo laptop, que não é compatível com o Windows 11.

O laptop agora deu o fantasma, e estou começando a preferir o Linux Mint ao Microsoft Windows. Então, decidi ir para um Raspberry Pi 5 com 8 GB de RAM e um chapéu NVMe.

Tenho a impressão de que não preciso instalar do zero como precisaria com o Microsoft Windows. Então, posso simplesmente conectar a unidade SATA do laptop a um conector USB por meio de um adaptador e usá-lo para inicializar minha antiga configuração do Linux Mint ou precisarei clonar o conteúdo da unidade SATA para um cartão SD ou unidade NVMe?

linux-mint
  • 1 respostas
  • 156 Views
Martin Hope
ItHertz
Asked: 2025-03-31 08:51:10 +0800 CST

Por que o comando magick envolvendo libtiff falha após atualizar o Linux Mint?

  • 5

Atualizei recentemente para o Linux Mint 22.1 Cinnamon, e um script ImageMagick agora gera um erro:

magick: symbol lookup error: /usr/local/lib/libMagickCore-7.Q16HDRI.so.10: undefined symbol: TIFFFieldDataType, version LIBTIFF_4.0

Percebo /usr/local/libque libMagickCore-7.Q16HDRI.so.10há um link simbólico apontando paralibMagickCore-7.Q16HDRI.so.10.0.0

A versão do ImageMagick que eu instalei do Synaptic. Não me lembro se já tentei instalar uma compilação de fora do Synaptic.

magick -version
Version: ImageMagick 7.1.0-43 Q16-HDRI x86_64 8718d6292:20220709 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(4.5) 
Delegates (built-in): fontconfig freetype jbig jng jpeg lcms lzma pangocairo png tiff x xml zlib
Compiler: gcc (9.4)

magick -list format
TIFF* rw+   Tagged Image File Format (LIBTIFF, Version 4.5.1)
TIFF64* rw+   Tagged Image File Format (64-bit) (LIBTIFF, Version 4.5.1)

Eu instalei libtiff-dev libtiff5-develibtiff6

Ao pesquisar sobre esse problema on-line, tentei aleatoriamente seguir o conselho, conda uninstall libtiffmas isso só retorna

PackagesNotFoundError: The following packages are missing from the target environment:
  - libtiff 

Qualquer ideia sobre como resolver isso seria muito apreciada.

linux-mint
  • 2 respostas
  • 40 Views
Martin Hope
user2661923
Asked: 2025-03-16 02:33:47 +0800 CST

Compreendendo o processo apt-get build-dep

  • 6

Adendo adicionado ao final desta pergunta publicada para responder à resposta de Stephen Kitt.


Publicação cruzada: não é uma boa ideia postar no fórum asymptote (sourceforge).

Nesta postagem, descrevo experimentos que fiz tentando executar o apt-get build-depcomando e também executando o apt-updatecomando. Gostaria de entender o que está causando esses erros e se (usando o código-fonte extraído, como está) há uma solução.

No Linux Mint 22, instalei o VirtualBox 7 e criei um convidado Linux Mint 22, para experimentação. No convidado, primeiro instalei o TexLive e, em seguida, instalei com sucesso o Asymptote 3.00, um plug-in de látex, a partir do seu código-fonte. Para fazer isso, tive que instalar primeiro os seguintes pacotes:

freeglut, cmake, libx11-dev, bison, flex, libgl1-mesa-dev, libglu1-mesa-dev  zlib1g-dev

Após esse experimento bem-sucedido, restaurei o snapshot do VirtualBox tirado logo após instalar o TexLive e extrair o código-fonte do Asymptote 3.00. Como um segundo experimento, tentei então encurtar o processo. Fui avisado de que posso deixar uma única instalação lidar com as dependências, por meio dos seguintes comandos:

apt-get build-dep asymptote 
./configure
make all
make install

Com base na pesquisa preliminar, sudo xedatualizei \etc\apt\sources.list com a seguinte linha:

deb-src file:/home/steve/Downloads/asymptote-3.00 unstable main contrib 

Em seguida, naveguei para /home/steve/Downloads/asymptote-3.00 e executei sudo apt-get build-dep asymptote. Isso falhou com a mensagem:

$ sudo apt-get build-dep asymptote
Reading package lists... Done
E: You must put some 'deb-src' URIs in your sources.list

Para investigar, executei então sudo apt update, o que resultou

Get:1 file:/home/steve/Downloads/asymptote-3.00 unstable InRelease
Ign:1 file:/home/steve/Downloads/asymptote-3.00 unstable InRelease
Get:2 file:/home/steve/Downloads/asymptote-3.00 unstable Release
Err:2 file:/home/steve/Downloads/asymptote-3.00 unstable Release
File not found - /home/steve/Downloads/asymptote-3.00/dists/unstable/Release (2: No such file or directory)
...

Com base no apt updaterelatório acima, tentei novamente sudo apt-get build-dep asymptote, após substituir a linha anexada por:

deb-src file:/home/steve/Downloads/asymptote-3.00

Isso resultou

$ sudo apt-get build-dep asymptote
E: Malformed entry 8 in list file /etc/apt/sources.list (Suite)
E: The list of sources could not be read.
E: Malformed entry 8 in list file /etc/apt/sources.list (Suite)
E: The list of sources could not be read.

Investigando novamente, executei novamente sudo apt update, o que resultou

$ sudo apt update
E: Malformed entry 8 in list file /etc/apt/sources.list (Suite)
E: The list of sources could not be read.

Investigando mais a fundo, a lista completa de subdiretórios do diretório asymptote 3.0 é:

backports           examples                patches                         
base                gc                      prc             
build-scripts       gl-matrix-2.4.0-pruned  tests           
cmake-preset-files  GUI                     thirdparty_impl 
cmake-scripts       libatomic_ops           tinyexr         
cudareflect         LspCpp                  webgl           
cxxtests            misc                    windows         
doc 

Adendo
I: testei e verifiquei a resposta de Stephen Kitt.

Depois de ler sua resposta e recarregar o instantâneo (anterior) do VirtualBox, descobri que as entradas debrather than já estavam incluídas em .deb-src/etc/apt/sources.list.d/official-source-repositories.list

Eu já havia determinado que, nessa situação, o apt-get build-dep asymptotecomando não funcionaria. Era necessário adicionar as deb-srcentradas em \etc\apt\sources.list. Conforme sua resposta, adicionei as cinco deb-srcentradas em \etc\apt\sources.list.

Então, eu executei menu : software-sources : enable-source-code-repositories : update-cache.

Então eu executei apt update.

Então, naveguei até o diretório do asymptotecódigo extraído e executei o apt-get build-dep asymptotecomando.

Presumivelmente, isso funcionou bem (ou seja, abortei após 10 minutos porque o processamento do VirtualBox é lento e o processo estava adicionando mais de 1 GB de empacotamento).

Com base em um comentário na resposta de Stephen Kitt, executei novamente todo o experimento, com uma exceção: em vez de adicionar todas as 5 deb-srclinhas \etc\apt\sources.list, adicionei apenas a deb-src http://archive.ubuntu.com/ubuntu noble main restricted universe multiverselinha.

Isso também pareceu funcionar perfeitamente. Novamente, abortei a execução do VirtualBox após 10 minutos, pelo mesmo motivo.

No geral, esta foi uma ótima experiência de aprendizado para mim.

linux-mint
  • 1 respostas
  • 42 Views
Martin Hope
Ryan King Art
Asked: 2025-03-13 23:22:20 +0800 CST

Fotos carregadas on-line em ordem oposta (Firefox e Linux Mint)

  • 5

Eu frequentemente carrego grupos de fotos online, como imagens de produtos ou obras de arte. Recentemente, notei que o Firefox carrega um grupo de fotos de uma pasta na ordem oposta. Isso aconteceu em todos os sites em que tentei carregar fotos.

Exemplo: Em uma pasta no Linux, tenho:

  • Obra de arte 1.jpg
  • Obra de arte 2.jpg
  • Obra de arte 3.jpg

Quando carrego todas as fotos juntas, elas são carregadas nesta ordem:

  • Obra de arte 3.jpg
  • Obra de arte 2.jpg
  • Obra de arte 1.jpg

Isso é frustrante porque tenho que reordenar manualmente as fotos toda vez que as carrego. Não me lembro de isso ter acontecido no passado, só recentemente.

Como isso acontece em todos os sites, imagino que tenha algo a ver com o Linux Mint ou o Firefox.

O que eu tentei:

Eu tentei pressionar Control A, para selecionar todas as fotos, e então carregá-las, e eu também tentei selecionar a primeira foto, então segurar shift, e selecionar a foto de baixo, e então clicar em carregar. Eu também tentei fazer isso, mas na direção oposta, então segurar shift, e selecionar a última foto, e então a primeira.

Também tentei organizar as fotos no meu navegador Fire por nome, data de modificação e ordem inversa, mas as fotos ainda são carregadas na ordem oposta.

Também tentei renomear as fotos para:

  • 001.jpg
  • 002.jpg
  • 003.jpg

E isso ainda não corrige a ordem de upload.

Isso também acontece com arquivos PNG e JPG.

linux-mint
  • 2 respostas
  • 36 Views
Martin Hope
MiB_Coder
Asked: 2025-03-09 17:59:14 +0800 CST

Não é possível montar o volume lógico LVM na inicialização usando fstab

  • 5

Tenho uma configuração com um volume lógico lvvm dentro de um grupo de volume vgsata. O lvvm foi criado com a opção thin -T:

sudo lvcreate -L 925G -T vgsata/lvvm
lsblk
...
sdc                     8:32   0 931,5G  0 disk  
└─sdc1                  8:33   0 931,5G  0 part  
  ├─vgsata-lvvm_tmeta 252:0    0   116M  0 lvm   
  │ └─vgsata-lvvm     252:2    0   925G  0 lvm   
  └─vgsata-lvvm_tdata 252:1    0   925G  0 lvm   
    └─vgsata-lvvm     252:2    0   925G  0 lvm   

Quando o sistema é iniciado, posso montar o volume pelo terminal sem problemas:

sudo mount /dev/vgsata/lvvm /VM

Mas quando tento fazer isso com o fstab, adicionando a linha

/dev/mapper/vgsata-lvvm /VM ext4    defaults    0   2

O processo de inicialização agora leva 1-2 minutos a mais sem montar o volume. Em boot.logencontro alguns problemas relacionados a timeout:

[ TIME ] Timed out waiting for device dev-m…m.device - /dev/mapper/vgsata-lvvm.
[DEPEND] Dependency failed for systemd-fsck…m Check on /dev/mapper/vgsata-lvvm.
[DEPEND] Dependency failed for VM.mount - /VM.
[DEPEND] Dependency failed for local-fs.target - Local File Systems.

Também tentei usar UUIDs, mas, apesar de essa não parecer ser a maneira recomendada para LVM, o problema não foi resolvido.

Então qual seria a melhor maneira de montar um volume lógico durante o boot? Ou eu cometi um erro ao criar o volume fino?

linux-mint
  • 1 respostas
  • 58 Views
Martin Hope
pedda
Asked: 2025-02-13 09:20:18 +0800 CST

Linux Mint 22: Problemas de configuração com initramfs, (partição criptografada luks com LVM para root, home, swap)

  • 9

Minha configuração: Pré-requisitos:

  • Dual Boot Windows 10/anteriormente Ubuntu 24.04 (vindo de 22.04)
  • Tabela de partição:
    /dev/nvme0n1p7                   202G   96M  202G   1% 
    /ntfs_data
    /dev/nvme0n1p3                   230G   54G  177G  24% 
    /windows
    /dev/nvme0n1p5                   3,0G  288M  2,6G  11% /boot
    /dev/mapper/ubuntu--vg-home      2,8T  1,7T  964G  64% /home
    /dev/nvme0n1p1                   256M  158M   99M  62% 
    /boot/efi
    tmpfs                            1,6G  300K  1,6G   1% /run/user/1000
    /home/xxx/.Private               2,8T  1,7T  964G  64% /home/xxx
    /dev/mapper/usb1TB_202304_crypt  938G  890G  559M 100% 
    /backup1TB
    /backup1TB/home_xxx_bck          938G  890G  559M 100% 
    /backup1TB/home_xxx_bck
    
    captura de tela do gparted da tabela de partição do meu ssd
  • /dev/nvme0n1p6 é o dispositivo criptografado luks com LVM configurado:
    • raiz (243 GB)
    • casa (2,8 TB)
    • trocar (16 GB)

Etapas de instalação para produzir erro no initramfs:

Usei o instalador USB do Linux Mint 22 (Imagem baixada em janeiro de 2025). Consegui instalar o LVM2 e o pacote cryptsetup para obter assistência para LVM e LUKS. Configurei em 2022 no Ubuntu 22.04 o LVM como o seguinte:

# vgs
  WARNING: Couldn't find device with uuid CQVk01-WJQL-pjIi-opcT-oESN-UOb1-judhlH.
  WARNING: Couldn't find device with uuid I5OUXJ-OkxW-403c-rEVJ-BmyG-Rd4M-r7SSFs.
  WARNING: VG ubuntu-vg is missing PV CQVk01-WJQL-pjIi-opcT-oESN-UOb1-judhlH (last written to /dev/mapper/ubuntu-vg1).
  WARNING: VG ubuntu-vg is missing PV I5OUXJ-OkxW-403c-rEVJ-BmyG-Rd4M-r7SSFs (last written to /dev/mapper/ubuntu-vg2).
  VG        #PV #LV #SN Attr   VSize  VFree   
  ubuntu-vg   3   4   0 wz-pn- <6,01t <180,97g

# pvs
  WARNING: Couldn't find device with uuid CQVk01-WJQL-pjIi-opcT-oESN-UOb1-judhlH.
  WARNING: Couldn't find device with uuid I5OUXJ-OkxW-403c-rEVJ-BmyG-Rd4M-r7SSFs.
  WARNING: VG ubuntu-vg is missing PV CQVk01-WJQL-pjIi-opcT-oESN-UOb1-judhlH (last written to /dev/mapper/ubuntu-vg1).
  WARNING: VG ubuntu-vg is missing PV I5OUXJ-OkxW-403c-rEVJ-BmyG-Rd4M-r7SSFs (last written to /dev/mapper/ubuntu-vg2).
  PV                      VG        Fmt  Attr PSize  PFree   
  /dev/mapper/ubuntu-luks ubuntu-vg lvm2 a--   3,21t <180,97g
  [unknown]               ubuntu-vg lvm2 a-m  <1,40t       0 
  [unknown]               ubuntu-vg lvm2 a-m  <1,40t       0 

# lvs
  LV         VG        Attr       LSize    Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  backupHome ubuntu-vg -wi-----p-    2,79t                                                    
  home       ubuntu-vg -wi-ao----    2,78t                                                    
  root       ubuntu-vg -wi-ao---- <247,33g                                                    
  swap_1     ubuntu-vg -wi-ao----   16,00g  

Abri um bash, abri o LUKS e ativei o LVM (o LVM foi criado anteriormente na versão 22.04 em 2022):

# cryptsetup luksOpen /dev/nvmeon1p6 ubuntu-luks
# lvchange -ay ubuntu-vg

Então iniciei o aplicativo de instalação e escolhi o modo manual para atribuir as partições, que configurei conforme mostrado acima, com formatação de root e /dev/nvme0n1p5 como partição /boot (não criptografada).

Depois disso, inicializei essas novas instalações instaladas do Linux Mint 22. Mas, além disso, curiosamente, na primeira vez, o diálogo de senha gráfica na sequência de inicialização no início só apareceu uma vez e descriptografou os luks, mas não conseguiu atribuir a partição LVM corretamente. Depois disso, nem mesmo o volume criptografado LUKS foi encontrado ou detectado e em todos os casos acabei depois de um longo tempo de espera no initramfs em caixa ocupado.

Aqui eu sempre tive que repetir as duas instruções acima antes de poder sair do initramfs e continuar inicializando meu sistema.

Descobri que não havia crypttab em /etc/crypttab e instalei um como

# cat /etc/crypttab 
# <target name>         <source device>                           <key file>      <options>
# mounted /, /home, swap_1
ubuntu-luks             UUID=b910aded-9314-403f-a350-7892ba95ffd5 none            luks
# mounted as /backupHome LV part1, partial Loading (mustn't be present during boot)
ubuntu-luks_backupHome1 UUID=b1d9ec9c-7dac-445f-998b-695b2ddf6daa none            luks
#ubuntu-luks_backupHome1 UUID=b1d9ec9c-7dac-445f-998b-695b2ddf6daa none            luks,noauto
# mounted as /backupHome LV part2, partial loading (mustn't be present during boot)
ubuntu-luks_backupHome2 UUID=9c5b65e8-5785-44be-85c7-3009cbc1e02a none            luks
#ubuntu-luks_backupHome2 UUID=9c5b65e8-5785-44be-85c7-3009cbc1e02a none            luks,noauto
usb1TB_202304_luks      UUID=4c4b603f-9146-4cb0-9621-9aa098ec592c none            luks

# ubuntu-luks             UUID=b910aded-9314-403f-a350-7892ba95ffd5 none            luks  # mounted on /
# ubuntu-luks_backupHome1 UUID=b1d9ec9c-7dac-445f-998b-695b2ddf6daa none            luks,noauto  # mounted as /backupHome, part1
# ubuntu-luks_backupHome2 UUID=9c5b65e8-5785-44be-85c7-3009cbc1e02a none            luks,noauto  # mounted as /backupHome, part2

e /etc/fstab:

# cat /etc/fstab 
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system>                           <mount point>   <type>  <options>                 <dump>  <pass>
/dev/mapper/ubuntu--vg-root               /               ext4    errors=remount-ro         0       1
# /boot was on /dev/nvme0n1p5 during installation
UUID=712868f5-29cc-429a-b535-375a3d868fa3 /boot           ext4    defaults                  0       2
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=E079-2792                            /boot/efi       vfat    umask=0077                0       1
/dev/mapper/ubuntu--vg-home               /home           ext4    defaults                  0       2
# /ntfs_data was on /dev/nvme0n1p7 during installation
UUID=3B269E2A1843CA0B                     /ntfs_data      ntfs    defaults,umask=007,gid=46 0       0
# /windows was on /dev/nvme0n1p3 during installation
UUID=4C30FF1730FF06AC                     /windows        ntfs    defaults,umask=007,gid=46 0       0
/dev/mapper/ubuntu--vg-swap_1             none            swap    sw                        0       0
/dev/mapper/ubuntu--vg-backupHome         /backupHome     ext4    defaults,nofail           0       2

então atualizei o initramfs com $ sudo update-initramfs -k all -c

Agora eu consertei permanentemente a criptografia do luks (então o diálogo aparece toda vez durante a inicialização, como descrito), mas a ativação do lvm $ lvchange -ay ubuntu-vg não é feita no initramfs!

Como eu poderia realizar esse último passo - ativar o grupo LV?

  • Observação: a mídia lvm de backup, que é uma unidade USB, normalmente não está presente durante a inicialização!!!
    # mounted as /backupHome LV part1, partial Loading (mustn't be present during boot)
    ubuntu-luks_backupHome1  UUID=xxx none            luks
    #ubuntu-luks_backupHome1 UUID=xxx none            luks,noauto
    # mounted as /backupHome LV part2, partial loading (mustn't be present during boot) 
    ubuntu-luks_backupHome2  UUID=xxx none            luks
    #ubuntu-luks_backupHome2 UUID=xxx none            luks,noauto
    

[EDIT 101502013]: Hoje ele inicializou com erro algo como

/sbin/lvchange not found

no initramfs. Uma coisa que descobri que era diferente no initrams, era que lvmos comandos do como lvs, pvs, vgs, lvchange, lvcreateetc. funcionavam apenas com o comando principal lvmcomo prefixo. Também descobri que no /sbinin initramfstem apenas um link simbólico como um alias estranho lvm -> vgchange, parece que arg0 se torna arg1 após aplicar o link. É isso que tento em seguida, colocando esse link no initramfs.

[EDIT2] Coloquei meu script lvm start e activating primeiro em local-top, depois em init-bottom, por último em local-bottom, e atualizei o initramfs de acordo, update-initramfs -k all -c mas sem sucesso, o LUKS é descriptografado, mas o script não é executado ou é executado muito cedo, e cada vez que ele acaba finalmente no console initramfs com seu busybox. Quando eu executo manualmente o script e saio, ele continua inicializando todas as vezes. Mas isso é muito desconfortável e, na mesma medida, demorado por causa dos muitos atrasos de tempo, em vez de executar o script, ele produz repetidamente esta linha de saída:

mdadm: No array found in config file or automatically

Este é o local real do meu script:

# tree /etc/initramfs-tools/
/etc/initramfs-tools/
├── conf.d
│   └── cryptsetup
├── hooks
├── initramfs.conf
├── modules
├── scripts
│   ├── init-bottom
│   ├── init-premount
│   ├── init-top
│   ├── local-bottom
│   │   └── lvm
│   ├── local-premount
│   ├── local-top
│   ├── nfs-bottom
│   ├── nfs-premount
│   ├── nfs-top
│   └── panic
└── update-initramfs.conf

14 directories, 5 files

o script parece executável assim:

#!/bin/sh
# Check and activate LVM volumes regardless of input arguments

# Log the intention to activate LVM volumes
echo "Activating LVM volumes..." > /dev/console

# Activate the volume group
if /sbin/vgchange -ay ubuntu-vg; then
    echo "Logical volume group ubuntu-vg successfully activated." > /dev/console
    /sbin/lvm lvchange -ay ubuntu-vg --activationmode partial
else
    echo "Failed to activate logical volume group ubuntu-vg." > /dev/console
fi

No meio tempo, esvaziei uma imagem initrd para ver onde o comando cryptsetup é executado, mas parece um pouco complicado: unmkinitramfs -v initrd.img-6.8.0-53-generic /tmp/initrd e pesquisei por cryptsetup :

# find /tmp/initrd/ -type f -iname "*" -exec grep -Hn "cryptsetup " {} \;
grep: /tmp/initrd/main/usr/sbin/cryptsetup: binary file matches
grep: /tmp/initrd/main/usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.10.0: binary file matches
grep: /tmp/initrd/main/usr/lib/x86_64-linux-gnu/libmount.so.1.1.0: binary file matches
/tmp/initrd/main/usr/lib/cryptsetup/functions:320:        if [ -e "$CRYPTTAB_OPTION_header" ] && /sbin/cryptsetup isLuks -- "$CRYPTTAB_OPTION_header"; then
/tmp/initrd/main/usr/lib/cryptsetup/functions:324:        if /sbin/cryptsetup isLuks -- "$s"; then
/tmp/initrd/main/usr/lib/cryptsetup/functions:366:    /sbin/cryptsetup -T1 \
/tmp/initrd/main/usr/lib/cryptsetup/functions:396:    /sbin/cryptsetup -T1 \
/tmp/initrd/main/usr/bin/cryptroot-unlock:89:# birth date) of the cryptsetup process with same $CRYPTTAB_NAME.
/tmp/initrd/main/usr/bin/cryptroot-unlock:118:  # find the cryptsetup process with same $CRYPTTAB_NAME
/tmp/initrd/main/usr/bin/cryptroot-unlock:173:      echo "cryptsetup: cryptsetup failed, bad password or options?" >&2
/tmp/initrd/main/scripts/local-top/cryptroot:127:    # our `cryptroot-unlock` script searches for cryptsetup processes
/tmp/initrd/main/scripts/local-top/cryptroot:164:            cryptsetup_message "ERROR: $CRYPTTAB_NAME: cryptsetup failed, bad password or options?"
/tmp/initrd/main/scripts/local-top/cryptroot:177:                /sbin/cryptsetup remove -- "$CRYPTTAB_NAME"

**Alguma ideia? O que eu fiz errado, ou poderia ter feito diferente? **

linux-mint
  • 1 respostas
  • 53 Views
Martin Hope
pedda
Asked: 2025-02-13 00:30:21 +0800 CST

Linux Mint 22: HP Envy 13 aq1176ng - apenas som no RDP, mas sem fones de ouvido ou alto-falantes

  • 5

Primeiro: som virtual através de RDP ( Remote Desktop Connection ) iE NoMachine funciona brilhantemente, apenas os alto-falantes internos e fones de ouvido não emitem som. Drivers de som ( firmware aberto de som são instalados pelo github source v2.2 (antes da maioria dos últimos v2.12) ). A placa de som é intels snd_hda_intel .

insira a descrição da imagem aqui

Segui alguns links encontrados na net sobre Linux Mint ou Ubuntu 22, que sempre são parecidos como:

  • instalar ALSA
  • Reinstalando o sistema de som e reiniciando o alsa
  • (re)instalar fio de tubulação
  • instalar e configurar hdajackretask (esta é a maneira menos promissora na minha humilde opinião)

incl. reiniciando alsa,

# dmesg | grep snd
[  659.315312] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[  659.315388] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[  659.678692] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC285: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[  659.678695] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[  659.678697] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[  659.678698] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
[  659.678699] snd_hda_codec_realtek ehdaudio0D0:    inputs:
[  659.678699] snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19

Obtendo informações sobre o sistema ( últimas duas linhas de áudio ):

# inxi -SMA
System:
  Host: HP-ENVY-Laptop-13-aq1176ng Kernel: 6.8.0-52-generic arch: x86_64
    bits: 64
  Desktop: Cinnamon v: 6.4.6 Distro: Linux Mint 22.1 Xia
Machine:
  Type: Laptop System: HP product: HP ENVY Laptop 13-aq1xxx
    v: Type1ProductConfigId serial: 8CG0165VNF
  Mobo: HP model: 86AE v: 83.18 serial: PJEKT1DHCDM061 UEFI: Insyde v: F.22
    date: 11/24/2023
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS driver: sof-audio-pci-intel-cnl
  API: ALSA v: k6.8.0-52-generic status: kernel-api

O diário que revisou as descobertas de 'snd' durante a inicialização parece bom para mim:

$ journalctl -b -x | grep -i snd
Oct 17 19:15:17 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
Oct 17 19:15:17 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
Feb 20 00:05:30 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC285: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
Feb 20 00:05:30 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
Feb 20 00:05:30 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
Feb 20 00:05:30 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
Feb 20 00:05:30 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_codec_realtek ehdaudio0D0:    inputs:
Feb 20 00:05:30 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19
Feb 20 01:17:31 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
Feb 20 01:17:31 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
Feb 20 01:17:31 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC285: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
Feb 20 01:17:31 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
Feb 20 01:17:31 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
Feb 20 01:17:31 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
Feb 20 01:17:31 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_codec_realtek ehdaudio0D0:    inputs:
Feb 20 01:17:31 HP-ENVY-Laptop-13-aq1176ng kernel: snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19

Até agora, nenhum resultado. A única coisa que está funcionando é que se você conectar via NoMachine o som é transferido para o computador remoto.

Então eu considero que o som é produzido, mas em algum lugar entre as camadas de Abstração do SO até o HW há um problema. Eu imploro por suas ideias, ou soluções (árvores)!

[EDITAR]

aplay -l saída

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Saída lspci :

# lspci
00:00.0 Host bridge: Intel Corporation Comet Lake-U v1 4c Host Bridge/DRAM Controller (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation CometLake-U GT2 [UHD Graphics] (rev 02)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 0c)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Comet Lake Thermal Subsytem
00:14.0 USB controller: Intel Corporation Comet Lake PCH-LP USB 3.1 xHCI Host Controller
00:14.2 RAM memory: Intel Corporation Comet Lake PCH-LP Shared SRAM
00:14.3 Network controller: Intel Corporation Comet Lake PCH-LP CNVi WiFi
00:14.5 SD Host controller: Intel Corporation Comet Lake PCH-LP SCS3
00:15.0 Serial bus controller: Intel Corporation Serial IO I2C Host Controller
00:15.1 Serial bus controller: Intel Corporation Comet Lake Serial IO I2C Host Controller
00:16.0 Communication controller: Intel Corporation Comet Lake Management Engine Interface
00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode]
00:1c.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #1 (rev f0)
00:1c.4 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #5 (rev f0)
00:1d.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #9 (rev f0)
00:1d.4 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #13 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Comet Lake PCH-LP LPC Premium Controller/eSPI Controller
00:1f.3 Multimedia audio controller: Intel Corporation Comet Lake PCH-LP cAVS
00:1f.4 SMBus: Intel Corporation Comet Lake PCH-LP SMBus Host Controller
00:1f.5 Serial bus controller: Intel Corporation Comet Lake SPI (flash) Controller
02:00.0 3D controller: NVIDIA Corporation GP108BM [GeForce MX250] (rev a1)
04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller S4LV008[Pascal]

saída de dmesg|grep audio

# dmesg |grep audio
[   15.060429] sof-audio-pci-intel-cnl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[   15.060582] sof-audio-pci-intel-cnl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[   15.060596] sof-audio-pci-intel-cnl 0000:00:1f.3: enabling device (0000 -> 0002)
[   15.060801] sof-audio-pci-intel-cnl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[   15.060876] sof-audio-pci-intel-cnl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[   15.067813] sof-audio-pci-intel-cnl 0000:00:1f.3: use msi interrupt mode
[   15.108086] sof-audio-pci-intel-cnl 0000:00:1f.3: hda codecs found, mask 5
[   15.108092] sof-audio-pci-intel-cnl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[   15.108097] sof-audio-pci-intel-cnl 0000:00:1f.3: DMICs detected in NHLT tables: 2
[   15.113689] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware paths/files for ipc type 0:
[   15.113694] sof-audio-pci-intel-cnl 0000:00:1f.3:  Firmware file:     intel/sof/sof-cml.ri
[   15.113697] sof-audio-pci-intel-cnl 0000:00:1f.3:  Topology file:     intel/sof-tplg/sof-hda-generic-2ch.tplg
[   15.116471] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[   15.116474] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[   15.116481] sof-audio-pci-intel-cnl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[   15.216153] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[   15.216160] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[   15.236595] sof-audio-pci-intel-cnl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
[   15.257684] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC285: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[   15.257692] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   15.257695] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[   15.257697] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
[   15.257699] snd_hda_codec_realtek ehdaudio0D0:    inputs:
[   15.257701] snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19
[ 4302.743485] sof-audio-pci-intel-cnl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 4302.743565] sof-audio-pci-intel-cnl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[ 4302.744012] sof-audio-pci-intel-cnl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 4302.744080] sof-audio-pci-intel-cnl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 4302.750643] sof-audio-pci-intel-cnl 0000:00:1f.3: use msi interrupt mode
[ 4302.764441] sof-audio-pci-intel-cnl 0000:00:1f.3: hda codecs found, mask 5
[ 4302.764450] sof-audio-pci-intel-cnl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[ 4302.764457] sof-audio-pci-intel-cnl 0000:00:1f.3: DMICs detected in NHLT tables: 2
[ 4302.766353] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware paths/files for ipc type 0:
[ 4302.766357] sof-audio-pci-intel-cnl 0000:00:1f.3:  Firmware file:     intel/sof/sof-cml.ri
[ 4302.766358] sof-audio-pci-intel-cnl 0000:00:1f.3:  Topology file:     intel/sof-tplg/sof-hda-generic-2ch.tplg
[ 4302.768019] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[ 4302.768022] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[ 4302.768029] sof-audio-pci-intel-cnl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[ 4302.880559] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[ 4302.880569] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[ 4302.881182] sof-audio-pci-intel-cnl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
[ 4302.897218] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC285: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[ 4302.897226] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 4302.897229] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[ 4302.897232] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
[ 4302.897233] snd_hda_codec_realtek ehdaudio0D0:    inputs:
[ 4302.897235] snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19

[EDIT 3] Imagem do Alsamixer. O dispositivo está mudo se estiver verde ao redor do número na coluna, ou vice-versa? Mais Lista de placas de som, que na verdade é padrão e sof-hda-default. insira a descrição da imagem aqui Mas alterar o volume ou silenciar no alsamixer não altera o som ausente dos alto-falantes e as alterações feitas não sobrevivem a uma inicialização: insira a descrição da imagem aqui

linux-mint
  • 1 respostas
  • 89 Views
Martin Hope
user153245
Asked: 2025-02-02 17:37:20 +0800 CST

O convidado do Windows 10 no Qemu/KVM no host Linux Mint não tem som

  • 6

Instalei o Windows 10 no Qemu/kvm em uma máquina com Linux Mint 22. Tudo parece estar funcionando corretamente, mas o Windows não emite som. No entanto, quando me conecto ao Windows via RDP usando o Remmina, o som do Windows está OK.

Quero ouvir o som do Windows diretamente (não via sessão RDP). Como posso corrigir isso?

ATUALIZAÇÃO O arquivo de configuração xml do convidado é o seguinte:

<domain type='kvm'>
  <name>win10</name>
  <uuid>febb531c-95f7-4022-bdd6-46363978364e</uuid>
  <metadata>
    <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
      <libosinfo:os id="http://microsoft.com/win/10"/>
    </libosinfo:libosinfo>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <vcpu placement='static'>4</vcpu>
  <os>
    <type arch='x86_64' machine='pc-q35-8.2'>hvm</type>
    <bootmenu enable='yes'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv mode='custom'>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
    </hyperv>
    <vmport state='off'/>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'>
    <topology sockets='1' dies='1' cores='2' threads='2'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
    <timer name='hypervclock' present='yes'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <pm>
    <suspend-to-mem enabled='no'/>
    <suspend-to-disk enabled='no'/>
  </pm>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' discard='unmap'/>
      <source file='/home/user/Qemu/QEMU-VMs/win-10/win10.qcow2'/>
      <target dev='vda' bus='virtio'/>
      <boot order='2'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/home/user/Software/virtio-win-0.1.262.iso'/>
      <target dev='sdc' bus='sata'/>
      <readonly/>
      <boot order='3'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <controller type='usb' index='0' model='qemu-xhci' ports='15'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x11'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
    </controller>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='3' port='0x12'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
    </controller>
    <controller type='pci' index='4' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='4' port='0x13'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    </controller>
    <controller type='pci' index='5' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='5' port='0x14'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
    </controller>
    <controller type='pci' index='6' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='6' port='0x15'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/>
    </controller>
    <controller type='pci' index='7' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='7' port='0x16'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x6'/>
    </controller>
    <controller type='pci' index='8' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='8' port='0x17'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x7'/>
    </controller>
    <controller type='pci' index='9' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='9' port='0x18'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='10' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='10' port='0x19'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x1'/>
    </controller>
    <controller type='pci' index='11' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='11' port='0x1a'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x2'/>
    </controller>
    <controller type='pci' index='12' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='12' port='0x1b'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x3'/>
    </controller>
    <controller type='pci' index='13' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='13' port='0x1c'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x4'/>
    </controller>
    <controller type='pci' index='14' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='14' port='0x1d'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x5'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </controller>
    <interface type='network'>
      <mac address='52:54:00:68:9d:5b'/>
      <source network='default'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='spice' autoport='yes'>
      <listen type='address'/>
      <image compression='off'/>
    </graphics>
    <graphics type='vnc' port='-1' autoport='yes'>
      <listen type='address'/>
    </graphics>
    <sound model='ich9'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
    </sound>
    <audio id='1' type='none'/>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <redirdev bus='usb' type='spicevmc'>
      <address type='usb' bus='0' port='2'/>
    </redirdev>
    <redirdev bus='usb' type='spicevmc'>
      <address type='usb' bus='0' port='3'/>
    </redirdev>
    <watchdog model='itco' action='reset'/>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
    </memballoon>
  </devices>
</domain>

ATUALIZAÇÃO 2 A seguir está o resultado de $ inxi -A:

Audio:
  Device-1: Intel CM238 HD Audio driver: snd_hda_intel
  Device-2: NVIDIA GP106 High Definition Audio driver: snd_hda_intel
  API: ALSA v: k6.8.0-52-generic status: kernel-api
  Server-1: PipeWire v: 1.0.5 status: active
linux-mint
  • 2 respostas
  • 127 Views
Martin Hope
Elder Geek
Asked: 2025-01-14 04:41:22 +0800 CST

Por que o lastlog mostra que todos os usuários nunca efetuaram login?

  • 5

Quando executo lastloga saída mostra todos os usuários no sistema como**Never logged in**

me@me-Z370-HD3P:~$ lastlog
Username         Port     From             Latest
root                                       **Never logged in**
daemon                                     **Never logged in**
bin                                        **Never logged in**
sys                                        **Never logged in**
sync                                       **Never logged in**
games                                      **Never logged in**
man                                        **Never logged in**
lp                                         **Never logged in**
mail                                       **Never logged in**
news                                       **Never logged in**
uucp                                       **Never logged in**
proxy                                      **Never logged in**
www-data                                   **Never logged in**
backup                                     **Never logged in**
list                                       **Never logged in**
irc                                        **Never logged in**
gnats                                      **Never logged in**
nobody                                     **Never logged in**
systemd-network                            **Never logged in**
systemd-resolve                            **Never logged in**
messagebus                                 **Never logged in**
systemd-timesync                           **Never logged in**
syslog                                     **Never logged in**
_apt                                       **Never logged in**
tss                                        **Never logged in**
rtkit                                      **Never logged in**
systemd-coredump                           **Never logged in**
kernoops                                   **Never logged in**
uuidd                                      **Never logged in**
cups-pk-helper                             **Never logged in**
lightdm                                    **Never logged in**
tcpdump                                    **Never logged in**
speech-dispatcher                           **Never logged in**
avahi-autoipd                              **Never logged in**
usbmux                                     **Never logged in**
nm-openvpn                                 **Never logged in**
geoclue                                    **Never logged in**
dnsmasq                                    **Never logged in**
pulse                                      **Never logged in**
_flatpak                                   **Never logged in**
avahi                                      **Never logged in**
saned                                      **Never logged in**
colord                                     **Never logged in**
fwupd-refresh                              **Never logged in**
hplip                                      **Never logged in**
me                                         **Never logged in**
sssd                                       **Never logged in**

'última' saída discorda (assim como eu). Por que a discrepância?

me@me-Z370-HD3P:~$ last
me       tty7         :0               Fri Jan 10 19:15    gone - no logout
reboot   system boot  5.15.0-130-gener Fri Jan 10 19:15   still running
me       tty7         :0               Fri Jan 10 19:11 - 19:12  (00:01)
reboot   system boot  5.15.0-130-gener Fri Jan 10 19:10 - 19:12  (00:01)
me       tty7         :0               Mon Jan  6 14:50 - 15:44 (4+00:53)
reboot   system boot  5.15.0-130-gener Mon Jan  6 14:15 - 15:44 (4+01:28)
me       tty7         :0               Fri Jan  3 08:04 - 14:14 (3+06:10)
reboot   system boot  5.15.0-126-gener Thu Jan  2 21:04 - 14:14 (3+17:10)
me       tty7         :0               Thu Jan  2 08:56 - 21:03  (12:07)
reboot   system boot  5.15.0-126-gener Wed Jan  1 16:19 - 21:03 (1+04:44)
me       tty7         :0               Wed Jan  1 12:40 - 13:54  (01:14)
reboot   system boot  5.15.0-126-gener Wed Jan  1 12:40 - 13:54  (01:14)
me       tty7         :0               Mon Nov 25 16:46 - 12:39 (36+19:52)
reboot   system boot  5.15.0-126-gener Mon Nov 25 16:46 - 12:39 (36+19:52)
me       tty7         :0               Tue Nov 19 16:57 - 16:45 (5+23:47)
reboot   system boot  5.15.0-126-gener Tue Nov 19 16:57 - 16:45 (5+23:48)
me       tty7         :0               Thu Nov 14 13:37 - 16:56 (5+03:19)
reboot   system boot  5.15.0-125-gener Thu Nov 14 12:15 - 16:56 (5+04:41)
me       tty7         :0               Wed Nov 13 11:30 - 12:14 (1+00:44)
reboot   system boot  5.15.0-125-gener Wed Nov 13 09:19 - 12:14 (1+02:55)
me       tty7         :0               Tue Nov 12 17:20 - 09:14  (15:54)
reboot   system boot  5.15.0-125-gener Tue Nov 12 17:19 - 09:14  (15:54)
reboot   system boot  5.15.0-125-gener Tue Nov 12 17:16 - 09:14  (15:58)
reboot   system boot  5.15.0-125-gener Tue Nov 12 16:55 - 09:14  (16:19)
me       tty7         :0               Tue Nov 12 15:22 - 16:42  (01:19)
reboot   system boot  5.15.0-125-gener Tue Nov 12 15:21 - 16:42  (01:20)
me       tty7         :0               Tue Nov 12 09:46 - 12:09  (02:22)
reboot   system boot  5.15.0-125-gener Tue Nov 12 09:46 - 12:09  (02:23)
me       tty7         :0               Mon Nov 11 15:38 - 09:45  (18:07)
reboot   system boot  5.15.0-124-gener Mon Nov 11 15:38 - 09:45  (18:07)
me       tty7         :0               Mon Nov 11 15:10 - 15:35  (00:25)
reboot   system boot  5.15.0-124-gener Mon Nov 11 15:10 - 15:35  (00:25)
me       tty7         :0               Mon Nov 11 15:05 - 15:07  (00:02)
reboot   system boot  5.15.0-124-gener Mon Nov 11 15:04 - 15:07  (00:03)
me       tty7         :0               Mon Nov 11 10:53 - 14:59  (04:06)
reboot   system boot  5.15.0-124-gener Mon Nov 11 10:41 - 14:59  (04:18)
me       tty7         :0               Mon Nov 11 10:35 - 10:40  (00:05)
reboot   system boot  5.15.0-124-gener Mon Nov 11 10:34 - 10:40  (00:05)
me       tty7         :0               Mon Nov 11 10:26 - 10:30  (00:04)
reboot   system boot  5.15.0-124-gener Mon Nov 11 10:26 - 10:30  (00:04)
me       tty7         :0               Sat Nov  2 08:45 - 10:18 (9+02:33)
reboot   system boot  5.15.0-124-gener Sat Nov  2 08:44 - 10:18 (9+02:33)
me       tty7         :0               Tue Oct 15 08:34 - 08:44 (18+00:10)
reboot   system boot  5.15.0-122-gener Tue Oct 15 08:33 - 08:44 (18+00:10)
me       tty7         :0               Sun Sep  1 11:34 - crash (43+20:59)
reboot   system boot  5.15.0-119-gener Sun Sep  1 11:34 - 08:44 (61+21:10)
me       tty7         :0               Sat Aug 10 17:05 - 11:33 (21+18:28)
reboot   system boot  5.15.0-117-gener Sat Aug 10 17:05 - 11:33 (21+18:28)
reboot   system boot  5.15.0-117-gener Sat Aug 10 16:49 - 17:04  (00:14)
reboot   system boot  5.15.0-117-gener Sat Aug 10 16:46 - 16:49  (00:02)
reboot   system boot  5.15.0-117-gener Sat Aug 10 16:45 - 16:46  (00:00)
me       tty7         :0               Fri Aug  9 07:28 - 16:45 (1+09:16)
me       tty7         :0               Sat Aug  3 17:39 - 07:28 (5+13:48)
reboot   system boot  5.15.0-117-gener Sat Aug  3 17:07 - 16:45 (6+23:37)
me       tty7         :0               Fri Aug  2 12:10 - 17:07 (1+04:56)
reboot   system boot  5.15.0-117-gener Fri Aug  2 12:10 - 17:07 (1+04:56)
me       tty7         :0               Fri Aug  2 11:04 - 12:09  (01:05)
reboot   system boot  5.15.0-116-gener Fri Aug  2 11:04 - 12:09  (01:05)
me       tty7         :0               Fri Aug  2 10:25 - 11:03  (00:38)
reboot   system boot  5.15.0-116-gener Fri Aug  2 10:03 - 11:03  (01:00)
me       tty7         :0               Tue Jul 23 17:34 - 10:02 (9+16:27)
reboot   system boot  5.15.0-116-gener Tue Jul 23 17:21 - 10:02 (9+16:40)
me       tty7         :0               Mon Jul 15 07:51 - 17:21 (8+09:29)
reboot   system boot  5.15.0-113-gener Sun Jul 14 21:15 - 17:21 (8+20:05)
me       tty7         :0               Sun Jun 30 18:16 - crash (14+02:58)
reboot   system boot  5.15.0-113-gener Sun Jun 30 15:45 - 17:21 (23+01:35)
me       tty7         :0               Sat Jun 15 12:14 - 15:44 (15+03:30)
reboot   system boot  5.15.0-112-gener Sat Jun 15 12:06 - 15:44 (15+03:38)
me       tty7         :0               Fri Jun  7 08:12 - crash (8+03:54)
reboot   system boot  5.15.0-112-gener Thu Jun  6 18:25 - 15:44 (23+21:19)
me       tty7         :0               Thu Jun  6 17:56 - 18:25  (00:28)
reboot   system boot  5.15.0-112-gener Thu Jun  6 17:56 - 18:25  (00:28)
me       tty7         :0               Tue Jun  4 15:23 - 14:01 (1+22:37)
reboot   system boot  5.15.0-107-gener Tue Jun  4 15:23 - 14:01 (1+22:37)
me       tty7         :0               Mon May 27 08:44 - 15:22 (8+06:38)
reboot   system boot  5.15.0-105-gener Mon May 27 08:43 - 15:22 (8+06:38)
me       tty7         :0               Sat Apr 20 19:39 - 08:43 (36+13:03)
reboot   system boot  5.15.0-105-gener Sat Apr 20 19:38 - 08:43 (36+13:04)
me       tty7         :0               Sat Apr 20 19:34 - 19:38  (00:03)
reboot   system boot  5.15.0-102-gener Sat Apr 20 19:33 - 19:38  (00:04)
me       tty7         :0               Thu Apr  4 15:35 - 19:32 (16+03:57)
reboot   system boot  5.15.0-101-gener Thu Apr  4 15:34 - 19:32 (16+03:57)
me       tty7         :0               Tue Mar 19 20:11 - 15:33 (15+19:22)
reboot   system boot  5.15.0-101-gener Tue Mar 19 19:44 - 15:33 (15+19:48)
me       tty7         :0               Mon Mar 11 08:19 - 19:44 (8+11:24)
reboot   system boot  5.15.0-100-gener Mon Mar 11 08:19 - 19:44 (8+11:24)
me       tty7         :0               Fri Mar  8 13:50 - 08:19 (2+17:29)
reboot   system boot  5.15.0-100-gener Fri Mar  8 13:34 - 08:19 (2+17:45)
me       tty7         :0               Mon Mar  4 12:41 - 13:33 (4+00:52)
reboot   system boot  5.15.0-97-generi Mon Mar  4 12:39 - 13:33 (4+00:53)
me       tty7         :0               Sat Mar  2 18:57 - 12:00 (1+17:02)
reboot   system boot  5.15.0-97-generi Sat Mar  2 18:57 - 12:00 (1+17:03)
me       tty7         :0               Sat Mar  2 18:42 - 18:44  (00:01)
reboot   system boot  5.15.0-97-generi Sat Mar  2 18:42 - 18:44  (00:01)
me       tty7         :0               Wed Feb 28 12:33 - 18:41 (3+06:08)
reboot   system boot  5.15.0-97-generi Wed Feb 28 12:32 - 18:41 (3+06:08)
me       tty7         :0               Tue Feb 27 15:38 - 15:41  (00:03)
reboot   system boot  5.15.0-97-generi Tue Feb 27 15:38 - 15:42  (00:03)
me       tty7         :0               Sun Feb 25 09:24 - 15:27 (2+06:02)
reboot   system boot  5.15.0-97-generi Sun Feb 25 09:24 - 15:27 (2+06:02)
me       tty7         :0               Sun Feb 25 08:22 - 09:24  (01:01)
reboot   system boot  5.15.0-97-generi Sun Feb 25 08:13 - 09:24  (01:10)
me       tty7         :0               Sun Feb 25 08:05 - 08:12  (00:06)
reboot   system boot  5.15.0-97-generi Sun Feb 25 08:05 - 08:12  (00:07)
me       tty7         :0               Fri Feb 23 17:17 - 08:04 (1+14:47)
reboot   system boot  5.15.0-97-generi Fri Feb 23 17:17 - 08:04 (1+14:47)
me       tty7         :0               Fri Feb 23 16:57 - 17:09  (00:12)
reboot   system boot  5.15.0-97-generi Fri Feb 23 16:56 - 17:09  (00:12)
me       tty7         :0               Tue Feb 20 08:48 - 16:56 (3+08:07)
reboot   system boot  5.15.0-91-generi Tue Feb 20 08:48 - 16:56 (3+08:07)
me       tty7         :0               Fri Feb 16 19:12 - 16:34  (21:22)
reboot   system boot  5.15.0-91-generi Fri Feb 16 19:12 - 16:34  (21:22)
me       tty7         :0               Wed Feb 14 15:20 - 15:24  (00:03)
reboot   system boot  5.15.0-91-generi Wed Feb 14 15:20 - 15:24  (00:04)
me       tty7         :0               Mon Feb 12 15:53 - 16:01  (00:08)
reboot   system boot  5.15.0-91-generi Mon Feb 12 15:53 - 16:01  (00:08)
me       tty7         :0               Wed Jan 24 16:35 - 16:55  (00:19)
reboot   system boot  5.15.0-91-generi Wed Jan 24 16:35 - 16:55  (00:19)
me       tty7         :0               Sun Jan 21 17:16 - 17:26  (00:10)
reboot   system boot  5.15.0-91-generi Sun Jan 21 16:45 - 17:26  (00:41)

wtmp begins Sun Jan 21 16:45:00 2024
linux-mint
  • 2 respostas
  • 54 Views

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