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 / user-18025

Scott Stensland's questions

Martin Hope
Scott Stensland
Asked: 2024-04-28 21:35:57 +0800 CST

Ubuntu 24.04 recebendo erro Você deve colocar alguns URIs 'deb-src' em seu sources.list ao emitir apt-get build-dep

  • 11

No Ubuntu 24.04 recém-instalado do zero (não uma atualização), recebo este erro quando executo

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

Antes da versão 24.04, a correção era fazer edições no /etc/apt/sources.list, mas agora na versão 24.04:

$ cat /etc/apt/sources.list
# Ubuntu sources have moved to /etc/apt/sources.list.d/ubuntu.sources

aqui está o novo arquivo em 24.04

$ cat /etc/apt/sources.list.d/ubuntu.sources 
Types: deb
URIs: http://us.archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports noble-proposed
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg



Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Como faço para adicionar deb-srcao novo arquivo /etc/apt/sources.list.d/ubuntu.sources?

apt
  • 1 respostas
  • 2671 Views
Martin Hope
Scott Stensland
Asked: 2023-08-21 22:54:08 +0800 CST

alto uso da CPU por um subprocesso do firefox chamado RDD Process

  • 6

Alguém sabe como corrigir esse alto uso da CPU por um subprocesso do firefox chamado Processo RDD ... ou como um band-aid temporário Como posso desabilitar o "Processo RDD" até que seja corrigido no Firefox? como um usuário leal do ff desde os dias de "existem dragões", eu odiaria parar de usar o ff, no entanto, os novos usuários do ff não tolerarão esse bug do ff

aqui está o topo mostrando isso

$ top

top - 10:46:45 up  1:33,  1 user,  load average: 1.52, 1.12, 0.75
Tasks: 451 total,   1 running, 449 sleeping,   0 stopped,   1 zombie
%Cpu(s):  7.1 us, 10.2 sy,  0.0 ni, 82.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :  63964.8 total,  48381.4 free,  10170.6 used,   5412.8 buff/cache
MiB Swap:  67584.0 total,  67584.0 free,      0.0 used.  52009.7 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                      
   9616 olaf      20   0  687632 124196  98824 S 167.6   0.2   8:06.11 RDD Process                                                                  
  11115 olaf      20   0 3478912   1.0g 142712 S  45.9   1.6   2:05.58 Isolated Web Co                                                              
   9154 olaf      20   0 5345052 918880 434104 S  37.8   1.4   9:23.10 firefox-trunk                                                                
   3318 olaf      20   0 7468292 375644 173560 S   8.1   0.6   4:51.18 gnome-shell                                                                  
   3828 root      20   0  394520  33684  27112 S   5.4   0.1   0:00.70 fwupd                                                                        
  19979 root      20   0       0      0      0 I   5.4   0.0   0:09.26 kworker/u32:0-i915                                                           
  20667 root      20   0       0      0      0 I   5.4   0.0   0:06.43 kworker/u32:4-i915                                                           
     65 root      20   0       0      0      0 S   2.7   0.0   0:00.78 ksoftirqd/8                                                                  
   3084 olaf       9 -11 2622692  31628  22540 S   2.7   0.0   0:25.00 pulseaudio                                                                   
   9014 olaf      20   0  751244  92592  66272 S   2.7   0.1   0:06.94 gnome-terminal-               

Isso começou outro dia ... antes eu nunca vi RDD

firefox   118.0a1 (2023-08-19) (64-bit)


uname -m && uname -r && cat /etc/*release
x86_64
6.2.0-26-generic
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy

e sim, não ajudou redefinindo minhas configurações locais emitindo

        rm -rf ~/.mozilla
        rm -rf ~/.cache/mozilla

isso está em uma área de trabalho robusta e esse processo RDD estava consistentemente usando alta CPU para sempre ... não foi um pico temporário de CPU de curta duração ... no entanto, depois de matar repetidamente o Firefox e relançar o RDD reapareceu em vários desses ciclos ... como Escrevo o processo RDD acabou, mas toda essa sequência de eventos se repetiu na semana passada ou algo assim

coincidentemente com o problema de RDD acima, o YouTube agora às vezes falha ao reproduzir um vídeo ao clicar no vídeo, mas o mesmo vídeo é reproduzido corretamente em outros navegadores como o Vivaldi

A resposta abaixo não resolve esse problema de alta CPU ... Como posso desativar o "Processo RDD" até que seja corrigido? Não quero um núcleo de CPU atrelado o dia todo, pois uso continuamente o Firefox, mesmo quando vejo apenas sites muito bem comportados como o SO ... e fica preso para sempre E o vídeo do youtube falha ao renderizar

UPDATE hamburger menu -> Troubleshoot Mode -> Reiniciar ... só para desabilitar todos os addons depois o problema do RDD desaparece porém eu nunca usaria ff sem meus addons então isso não é uma solução

firefox
  • 1 respostas
  • 45 Views
Martin Hope
Scott Stensland
Asked: 2023-02-11 10:47:21 +0800 CST

tentando sobrescrever foo, que também está na barra de pacotes dpkg-deb: erro: colar subprocesso foi encerrado por sinal (canal quebrado) [duplicado]

  • 7
Esta pergunta já tem respostas aqui :
erro do dpkg: "tentando sobrescrever o arquivo, que também está em..." (6 respostas)
Fechado no mês passado .

Ubuntu 22.04

Hoje quando eu emito

sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 unixodbc : Depends: odbcinst1debian2 (>= 2.3.11) but it is not installed
            Depends: libodbc1 (>= 2.3.11) but 2.3.9-5 is installed
 unixodbc-dev : Depends: odbcinst1debian2 (= 2.3.11) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

então como sugerido obtendo

sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libodbccr2
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libodbc1 odbcinst odbcinst1debian2
Suggested packages:
  unixodbc-bin
The following NEW packages will be installed:
  odbcinst1debian2
The following packages will be upgraded:
  libodbc1 odbcinst
2 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/607 kB of archives.
After this operation, 863 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 725562 files and directories currently installed.)
Preparing to unpack .../odbcinst_2.3.11_amd64.deb ...
Unpacking odbcinst (2.3.11) over (2.3.9-5) ...
dpkg: error processing archive /var/cache/apt/archives/odbcinst_2.3.11_amd64.deb (--unpack):
 trying to overwrite '/etc/odbc.ini', which is also in package unixodbc-common 2.3.9-5
Preparing to unpack .../odbcinst1debian2_2.3.11_amd64.deb ...
Unpacking odbcinst1debian2:amd64 (2.3.11) ...
dpkg: error processing archive /var/cache/apt/archives/odbcinst1debian2_2.3.11_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbcinst.so.2.0.0', which is also in package libodbcinst2:amd64 2.3.9-5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../libodbc1_2.3.11_amd64.deb ...
Unpacking libodbc1:amd64 (2.3.11) over (2.3.9-5) ...
dpkg: error processing archive /var/cache/apt/archives/libodbc1_2.3.11_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbc.so.2.0.0', which is also in package libodbc2:amd64 2.3.9-5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/odbcinst_2.3.11_amd64.deb
 /var/cache/apt/archives/odbcinst1debian2_2.3.11_amd64.deb
 /var/cache/apt/archives/libodbc1_2.3.11_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Como sair desse buraco?

Não tenho problemas em limpar qualquer pacote para resolver esse problema. Este é exatamente o tipo de caso extremo que está atrasando a adoção em massa do Linux. Meu instinto diz que fique quieto até que os proprietários de pacotes ofensivos empurrem sua correção upstream.

Eu tentei muitos palpites, incluindo... sem sucesso... Sugestões?

sudo apt-get autoremove  
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 unixodbc : Depends: odbcinst1debian2 (>= 2.3.11) but it is not installed
            Depends: libodbc1 (>= 2.3.11) but 2.3.9-5 is installed
 unixodbc-dev : Depends: odbcinst1debian2 (= 2.3.11) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
apt
  • 2 respostas
  • 637 Views
Martin Hope
Scott Stensland
Asked: 2021-08-01 03:38:11 +0800 CST

O arquivo tem tamanho inesperado (7660 != 7398). Sincronização de espelho em andamento?

  • 1

recebendo este erro ao executar a atualização do sistema

sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                                                               
Hit:3 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                                                             
Hit:4 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                    
Hit:5 https://download.docker.com/linux/ubuntu focal InRelease                                                                                                                  
Hit:6 http://us.archive.ubuntu.com/ubuntu focal-security InRelease                                                                                                              
Hit:7 https://download.sublimetext.com apt/dev/ InRelease                                                                                                                       
Hit:8 http://us.archive.ubuntu.com/ubuntu focal-proposed InRelease                                                                                                              
Get:9 https://brave-browser-apt-nightly.s3.brave.com stable InRelease [4,317 B]                                                                                                 
Hit:10 https://apt.releases.hashicorp.com focal InRelease                                                                                                                       
Hit:11 https://deb.opera.com/opera-developer stable InRelease                                                                      
Hit:12 https://packages.microsoft.com/repos/azure-cli focal InRelease                                        
Hit:13 https://packages.microsoft.com/repos/ms-teams stable InRelease                  
Hit:14 http://archive.canonical.com/ubuntu focal InRelease                            
Get:15 https://mega.nz/linux/MEGAsync/xUbuntu_20.04 ./ InRelease [2,441 B]
Get:16 https://brave-browser-apt-nightly.s3.brave.com stable/main amd64 Packages [7,398 B]
Err:16 https://brave-browser-apt-nightly.s3.brave.com stable/main amd64 Packages
  File has unexpected size (7660 != 7398). Mirror sync in progress? [IP: 99.84.126.35 443]
  Hashes of expected file:
   - Filesize:7398 [weak]
   - SHA512:8bd5e753fce431f6e7cf8111722cd89c296598b62b335fd839e4c85c90d348a61347a456f3f8d117e3ae4c035cff797549eb2f4d5ecdccbc949d397c1b7e56ca
   - SHA256:bb14d8a13aac904ca0410bf622f7d062f3336273d94a7a33b881d223234f7167
   - SHA1:fe3f258c595be080b276763c160a04c4bc2f59ca [weak]
   - MD5Sum:6a2fa07708eb6be197aae80b61a5906c [weak]
  Release file created at: Sat, 31 Jul 2021 06:46:39 +0000
Fetched 6,758 B in 2s (3,237 B/s)
Reading package lists... Done
E: Failed to fetch https://brave-browser-apt-nightly.s3.brave.com/dists/stable/main/binary-amd64/Packages.bz2  File has unexpected size (7660 != 7398). Mirror sync in progress? [IP: 99.84.126.35 443]
   Hashes of expected file:
    - Filesize:7398 [weak]
    - SHA512:8bd5e753fce431f6e7cf8111722cd89c296598b62b335fd839e4c85c90d348a61347a456f3f8d117e3ae4c035cff797549eb2f4d5ecdccbc949d397c1b7e56ca
    - SHA256:bb14d8a13aac904ca0410bf622f7d062f3336273d94a7a33b881d223234f7167
    - SHA1:fe3f258c595be080b276763c160a04c4bc2f59ca [weak]
    - MD5Sum:6a2fa07708eb6be197aae80b61a5906c [weak]
   Release file created at: Sat, 31 Jul 2021 06:46:39 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
updates
  • 1 respostas
  • 4903 Views
Martin Hope
Scott Stensland
Asked: 2021-02-21 10:14:31 +0800 CST

o reparo de inicialização não ajuda : A sessão atual está no modo de compatibilidade do BIOS

  • 1

na inicialização, ele vai diretamente para o temido prompt do grub

O Ubuntu 20.04 estava funcionando bem ( /dev/sda5 ) até que eu excluí (no gparted ) uma partição não utilizada /dev/sda6 que renomeou automaticamente a seguinte partição /dev/sda7 para ser chamada /dev/sda6 (bug no gparted ? deveria ter deixado 7 como 7) ... a caixa tinha uma inicialização dupla do fedora no que originalmente estava /dev/sda7 também funcionando bem até agora

este é um laptop antigo de 2012 e não vejo menção a UEFI na bios ... recebo a seguinte mensagem quando executo o reparo de inicialização

A sessão atual está no modo de compatibilidade com BIOS. Desative o modo de compatibilidade com BIOS/CSM/Legacy em seu firmware UEFI e use este software de um live-CD (ou live-USB) compatível com o modo de inicialização UEFI. Por exemplo, use um Live-USB de Boot-Repair-Disk-64bit ( www.sourceforge.net/p/boot-repair-cd ), depois de certificar-se de que seu BIOS está configurado para inicializar USB no modo EFI. Isso ativará esse recurso.

https://paste.ubuntu.com/p/btw3GkGGqB/ alguma sugestão?

atualmente estou inicializado em live usb nesta caixa com gparted mostrando

insira a descrição da imagem aqui

grub2
  • 1 respostas
  • 5508 Views
Martin Hope
Scott Stensland
Asked: 2020-08-14 15:50:18 +0800 CST

systemd[1]: apport-autoreport.service: Falha com resultado 'start-limit-hit'

  • 1

systemd está usando 100% continuamente ... aqui está o topo

top - 19:47:09 up 13 min,  1 user,  load average: 3.26, 2.62, 1.69
Tasks: 306 total,   4 running, 294 sleeping,   0 stopped,   8 zombie
%Cpu(s): 35.5 us, 12.6 sy,  0.0 ni, 51.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :  11858.2 total,   5183.4 free,   3433.2 used,   3241.6 buff/cache
MiB Swap:   2048.0 total,   2048.0 free,      0.0 used.   7913.7 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                    
      1 root      20   0  268660 110536   8532 R 100.0   0.9  11:39.36 systemd                                                                                    
    772 message+  20   0   10988   6768   4116 R  46.0   0.1   5:16.01 dbus-daemon                                                                                
    259 root      19  -1  496536 327492 325464 S  16.8   2.7   2:16.95 systemd-journal                                                                            
    796 syslog    20   0  221104   5832   4052 S  13.9   0.0   1:38.00 rsyslogd                                                                                   
    804 root      20   0  103380  93880   7784 S  13.1   0.8   1:34.41 systemd-logind                                                                             
     18 root      20   0       0      0      0 S   0.7   0.0   0:00.55 ksoftirqd/1                                                                                
   1733 root      20   0  352968 130376  83760 S   0.7   1.1   0:25.47 Xorg                                                                                       
   1916 ava       20   0 4008000 272576 117864 S   0.7   2.2   0:32.40 gnome-shell                                                                                
   3877 ava       20   0 2629148 269672 162688 S   0.7   2.2   0:09.53 Web Content                       

   

aqui está o log do sistema

 sudo tail -n 100 /var/log/syslog
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.

aqui está um pouco do dmesg

[    3.942656] systemd[1]: Inserted module 'autofs4'
[    4.005635] systemd[1]: systemd 246-2ubuntu1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[    4.025381] systemd[1]: Detected architecture x86-64.
[    4.046020] systemd[1]: Set hostname to <kiev>.
[    4.132974] systemd[1]: /lib/systemd/system/docker.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock → /run/docker.sock; please update the unit file accordingly.
[    4.137916] systemd[1]: /lib/systemd/system/dbus.service:12: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
[    4.164397] systemd[1]: /lib/systemd/system/plymouth-start.service:17: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
[    4.193000] systemd[1]: /lib/systemd/system/gdm.service:30: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.

isso aconteceu depois da minha última atualização do sistema ... mesmo após a reinicialização e/ou outra atualização do sistema ... alguma idéia?

Ubuntu 20.04

systemd apport
  • 2 respostas
  • 6053 Views
Martin Hope
Scott Stensland
Asked: 2020-07-10 08:40:33 +0800 CST

Como pesquisar todos os pacotes de snap por nome de arquivo?

  • 1

Qual é o snap equivalente à emissão

apt-file search X11/extensions/XKBrules.h # header file some repo uses who's compile fails as it cannot find this file

# ... above returns with

libxkbfile-dev: /usr/include/X11/extensions/XKBrules.h

acima me permite identificar qual pacote do Ubuntu libxkbfile-devcontém o arquivo/usr/include/X11/extensions/XKBrules.h

a beleza de cima é que ele procura TODOS os pacotes não apenas os já instalados

Como identificar qual pacote snap contém um determinado nome de arquivo? (mesmo quando ainda estou para instalar esse pacote snap)


Em uma nova máquina, para que o arquivo apt acima funcione, a máquina deve ter a seguinte execução para instalar o índice mais recente de todos os pacotes do Ubuntu

sudo apt install apt-file -y  && sudo apt-file update

Estou procurando o equivalente funcional a isso para pacotes instantâneos

... Por que ? um caso de uso comum é: se eu estiver compilando o código de outra pessoa e um arquivo de cabeçalho estiver ausente, então eu preciso saber qual pacote instalar para obter esse cabeçalho ausente (supondo que o arquivo ausente realmente viva em um pacote que geralmente faz para pacotes do Ubuntu e fará cada vez mais à medida que os projetos migram para o snap )

package-management apt snap
  • 1 respostas
  • 115 Views
Martin Hope
Scott Stensland
Asked: 2020-05-07 08:01:08 +0800 CST

docker ps preso ... docker install também trava

  • 5

docker pstrava para sempre foi o primeiro sintoma, então limpei o docker e tentei reinstalar ... a instalação nunca termina

dpkg -l|grep docker
iF  docker-ce                                  5:19.03.8~3-0~ubuntu-bionic                amd64        Docker: the open-source application container engine
ii  docker-ce-cli                              5:19.03.8~3-0~ubuntu-bionic                amd64        Docker CLI: the open-source application container engine

aviso acima que o docker instalado falhou conforme iF... detalhes consultedpkg -l | head -3

no Ubuntu 20.04 docker falha ao concluir sua instalação

sudo apt-get install docker-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  aufs-tools cgroupfs-mount containerd.io docker-ce-cli pigz
The following NEW packages will be installed:
  aufs-tools cgroupfs-mount containerd.io docker-ce docker-ce-cli pigz
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/85.7 MB of archives.
After this operation, 385 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Selecting previously unselected package pigz.
(Reading database ... 272586 files and directories currently installed.)
Preparing to unpack .../0-pigz_2.4-1_amd64.deb ...
Unpacking pigz (2.4-1) ...
Selecting previously unselected package aufs-tools.
Preparing to unpack .../1-aufs-tools_1%3a4.14+20190211-1ubuntu1_amd64.deb ...
Unpacking aufs-tools (1:4.14+20190211-1ubuntu1) ...
Selecting previously unselected package cgroupfs-mount.
Preparing to unpack .../2-cgroupfs-mount_1.4_all.deb ...
Unpacking cgroupfs-mount (1.4) ...
Selecting previously unselected package containerd.io.
Preparing to unpack .../3-containerd.io_1.2.13-1_amd64.deb ...
Unpacking containerd.io (1.2.13-1) ...
Selecting previously unselected package docker-ce-cli.
Preparing to unpack .../4-docker-ce-cli_5%3a19.03.8~3-0~ubuntu-bionic_amd64.deb ...
Unpacking docker-ce-cli (5:19.03.8~3-0~ubuntu-bionic) ...
Selecting previously unselected package docker-ce.
Preparing to unpack .../5-docker-ce_5%3a19.03.8~3-0~ubuntu-bionic_amd64.deb ...
Unpacking docker-ce (5:19.03.8~3-0~ubuntu-bionic) ...
Setting up aufs-tools (1:4.14+20190211-1ubuntu1) ...
Setting up containerd.io (1.2.13-1) ...
Setting up docker-ce-cli (5:19.03.8~3-0~ubuntu-bionic) ...
Setting up pigz (2.4-1) ...
Setting up cgroupfs-mount (1.4) ...
Setting up docker-ce (5:19.03.8~3-0~ubuntu-bionic) ...
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.

a instalação anterior estava OK até que percebi que docker psestava travando para sempre ... Limpei o docker, incluindo a exclusão de todos

apt-get purge docker-*  -y
rm -rf /var/lib/docker
systemctl daemon-reload

aqui está minha entrada apt

cd  /etc/apt ; grep -r docker 

sources.list.d/docker.list:deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable

então eu corri acima da instalação, que também travou para sempre, então, em desespero, adicionei abaixo à lista de cmds de exclusão ... não ajudou

rm /var/run/docker.pid
rm -rf /lib/systemd/system/docker.service
rm -rf /etc/docker
rm -rf /run/docker.sock
rm -rf /etc/systemd/system/docker.service.d

docker versiontambém trava mesmo como root

uname -m && uname -r && cat /etc/*release
x86_64
5.4.0-30-generic
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS"
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"

Estou prestes a reformatar meu laptop e reinstalar o Ubuntu 20.04 do zero... algum conselho?

Evidentemente, a lógica do pacote docker-ce purge deixa restos misteriosos do docker flutuando, o que impede que a instalação subsequente do docker funcione corretamente

PS ... meu VPS remoto ubuntu 18.04 executa o docker bem, então não sei se isso é relacionado ao Ubuntu 20.04, embora eu tenha visto o docker funcionar bem em outras caixas 20.04

ATUALIZAR

sim, quando eu volto para o kernel 29 do docker 5.4.0-30-generic está funcionando bem e quando eu volto para o kernel 30 novamente, está falhando da mesma maneira ... aqui está no kernel 5.4.0-30-generic

sudo journalctl -u docker

May 06 15:42:10 kiev systemd[1]: Starting Docker Application Container Engine...
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.613610505-04:00" level=info msg="Starting up"
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.615578768-04:00" level=info msg="detected 127.0.0.53 nameserver, assuming systemd-resolved, so using resolv.conf: /run/systemd/resolve/resolv.>
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.645651302-04:00" level=info msg="parsed scheme: \"unix\"" module=grpc
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.645870506-04:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.645925462-04:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0  <nil>}] <nil>}" module=>
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.645942687-04:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.648421919-04:00" level=info msg="parsed scheme: \"unix\"" module=grpc
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.648915679-04:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.649020592-04:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0  <nil>}] <nil>}" module=>
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.649038754-04:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.845831131-04:00" level=warning msg="Your kernel does not support swap memory limit"
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.845857901-04:00" level=warning msg="Your kernel does not support cgroup blkio weight"
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.845868145-04:00" level=warning msg="Your kernel does not support cgroup blkio weight_device"
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.846071798-04:00" level=info msg="Loading containers: start."
May 06 15:42:10 kiev dockerd[6798]: time="2020-05-06T15:42:10.955282685-04:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set>
May 06 15:42:11 kiev dockerd[6798]: time="2020-05-06T15:42:11.027647745-04:00" level=info msg="Loading containers: done."

Portanto, o problema só acontece usando o kernel 5.4.0-30-generic, enquanto o 5.4.0-29-generic está OK

docker-ce    5:19.03.8~3-0~ubuntu-bionic      amd64  

ATUALIZAR

docker está OK no Ubuntu 20.04, que atualmente possui o kernel 5.8.0-32-generic

docker 20.04
  • 5 respostas
  • 8484 Views
Martin Hope
Scott Stensland
Asked: 2019-09-11 08:42:13 +0800 CST

por que tracker-miner-fs está consumindo 100% da minha CPU? O que é /usr/lib/tracker/tracker-miner-fs?

  • 12

O que é /usr/lib/tracker/tracker-miner-fs ?

man tracker-miner-fs

tracker-miner-fs - Used to crawl the file system to mine data.

alguém tem um link sobre o que está enviando de volta para a nave-mãe?

Eu tenho toda a pesquisa da área de trabalho do Ubuntu desligada

configurações -> Pesquisar -> desativado

então por que isso ainda está em execução?

Por que esses porcos de alto recurso lançados pelo sistema se jogam na inicialização? no mínimo, eles devem saber o suficiente para ficar quietos por vários minutos após uma inicialização antes de derrotar um sistema

aqui está o meu topo

 top

top - 12:18:44 up 2 days, 22:05,  1 user,  load average: 1.78, 0.93, 0.81
Tasks: 402 total,   2 running, 397 sleeping,   0 stopped,   3 zombie
%Cpu(s):  3.1 us,  0.8 sy, 12.3 ni, 81.4 id,  0.0 wa,  0.0 hi,  2.3 si,  0.0 st
MiB Mem :  11890.6 total,   2620.7 free,   6532.1 used,   2737.9 buff/cache
MiB Swap:    980.0 total,    520.4 free,    459.6 used.   4676.9 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                      
 2465 pie       39  19  907480 181896   5516 R 100.7   1.5   0:41.54 tracker-miner-f                                                                                              
27322 pie       20   0 2815908 300964 152648 S  16.3   2.5   0:05.06 Web Content                                                                                                  
26063 pie       20   0 3446052 442824 213372 S  11.6   3.6   1:29.63 firefox-bin                                                                                                  
 2260 pie       20   0 3986768 495212  66044 S   1.7   4.1 180:56.22 gnome-shell                                                                                                  
 2591 pie       20   0 4982644 576408  60328 S   0.7   4.7  98:44.12 skypeforlinux                                                                                                
15989 pie       20   0  847760 255684  79192 S   0.7   2.1  76:30.11 opera-developer                                                                                              
   10 root      20   0       0      0      0 I   0.3   0.0   3:16.04 rcu_sched                                                                                                    
  896 root     -51   0       0      0      0 S   0.3   0.0   4:12.46 irq/129-iwlwifi                                                                                              
 1156 systemd+  20   0   23168   2976   1992 S   0.3   0.0   0:23.42 systemd-resolve                                                                                              
 7691 pie       20   0 1857912 890064 102592 S   0.3   7.3  76:55.09 brave                                                                                                        
15919 pie       20   0  609008  63460  40212 S   0.3   0.5   1:11.66 opera-developer                                                                                              
22668 pie       20   0  797876 206564  95392 S   0.3   1.7   1:01.99 brave                                                                                                        
    1 root      20   0  166808   6648   3776 S   0.0   0.1   0:42.56 systemd                            

aqui está o pid

ps -eafww|grep 2465 
pie       2465  2131  0 Sep07 tty2     00:00:53 /usr/lib/tracker/tracker-miner-fs

aqui está o seu pacote ubuntu

apt-file search tracker-miner-fs

tracker-miner-fs

aqui está a descrição do pacote

apt show  -a   tracker-miner-fs


Description: metadata database, indexer and search tool - filesystem indexer
 This package contains the tracker indexer for indexing your files and folders.
 .
 Tracker is an advanced framework for first class objects with associated
 metadata and tags. It provides a one stop solution for all metadata, tags,
 shared object databases, search tools and indexing.

Por que esse processo do sistema está usando 100% da minha CPU?

Como eliminá-lo ... não da maneira usual, pois parece estar profundamente incorporado e fazer uma limpeza simples do pacote destruiria minha caixa

 sudo apt purge  tracker-miner-fs 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apturl apturl-common libcue2 libgnome-autoar-0-0 libgsf-1-114 libgsf-1-common libtagc0 libtracker-control-2.0-0 libtracker-miner-2.0-0 nautilus-data tracker tracker-extract
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  gnome-shell-extension-desktop-icons* nautilus* nautilus-share* tracker-miner-fs* ubuntu-desktop* ubuntu-desktop-minimal*
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
After this operation, 2,704 kB disk space will be freed.
Do you want to continue? [Y/n] 

então não vamos limpá-lo ... que tal apenas uma remoção

sudo apt remove tracker-miner-fs 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apturl apturl-common libcue2 libgnome-autoar-0-0 libgsf-1-114 libgsf-1-common libtagc0 libtracker-control-2.0-0 libtracker-miner-2.0-0 nautilus-data tracker tracker-extract
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  gnome-shell-extension-desktop-icons nautilus nautilus-share tracker-miner-fs ubuntu-desktop ubuntu-desktop-minimal
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
After this operation, 2,704 kB disk space will be freed.
Do you want to continue? [Y/n]

então removê-lo também destruiria a máquina (se você remover um pacote que, por sua vez, deseja remover o pacote ubuntu-desktop, sua máquina falhará ao inicializar normalmente, portanto, será necessário inicializar na recuperação para colocá-lo em funcionamento)

aqui está o conteúdo de seu pacote ubuntu

dpkg -L tracker-miner-fs 
/.
/etc
/etc/xdg
/etc/xdg/autostart
/etc/xdg/autostart/tracker-miner-apps.desktop
/etc/xdg/autostart/tracker-miner-fs.desktop
/usr
/usr/lib
/usr/lib/sysctl.d
/usr/lib/sysctl.d/30-tracker.conf
/usr/lib/systemd
/usr/lib/systemd/user
/usr/lib/systemd/user/tracker-miner-apps.service
/usr/lib/systemd/user/tracker-miner-fs.service
/usr/lib/tracker
/usr/lib/tracker/tracker-miner-apps
/usr/lib/tracker/tracker-miner-fs
/usr/share
/usr/share/dbus-1
/usr/share/dbus-1/services
/usr/share/dbus-1/services/org.freedesktop.Tracker1.Miner.Applications.service
/usr/share/dbus-1/services/org.freedesktop.Tracker1.Miner.Files.service
/usr/share/doc
/usr/share/doc/tracker-miner-fs
/usr/share/doc/tracker-miner-fs/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/tracker-miner-fs
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/tracker-miner-fs.1.gz
/usr/share/tracker
/usr/share/tracker/miners
/usr/share/doc/tracker-miner-fs/changelog.Debian.gz
/usr/share/tracker/miners/org.freedesktop.Tracker1.Miner.Applications.service
/usr/share/tracker/miners/org.freedesktop.Tracker1.Miner.Files.service

Devo desabilitar isso desligando seu serviço systemd? Deve apenas ser deixado sozinho?

uname -m && uname -r && cat /etc/*release
x86_64
5.0.0-28-generic
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=19.04
DISTRIB_CODENAME=disco
DISTRIB_DESCRIPTION="Ubuntu 19.04"
NAME="Ubuntu"
VERSION="19.04 (Disco Dingo)"

Vejo que está ativado usando dconf-editor -> org-> freedesktop-> tracker-> miner-> files

Vejo que está ativado usando dconf-editor -> org-> freedesktop-> tracker-> miner-> files

O que permanece sem resposta é quem se beneficia dessa corrida? Também posso assinar o feed enviado para a nave-mãe para me permitir ver quem está usando meus pacotes/aplicativos se é isso que esta ferramenta está fazendo? Qual é o grande quadro aqui?

performance systemd
  • 2 respostas
  • 10209 Views
Martin Hope
Scott Stensland
Asked: 2019-01-10 20:31:32 +0800 CST

Como desacelerar a conexão com a internet?

  • 2

Eu tenho um download muito grande para executar, que é de baixa prioridade.

Posso reduzir a velocidade de rede do meu Ubuntu 18.10 para que este download não prejudique minha conexão que é compartilhada com outros computadores?

Estou em uma conexão wi-fi doméstica.

Posso usar um navegador para realizar este download ou wget, etc... mas não vejo tal configuração.

networking wireless bandwidth download-speed
  • 1 respostas
  • 1146 Views
Martin Hope
Scott Stensland
Asked: 2019-01-08 16:32:05 +0800 CST

Embora a extensão de integração do GNOME Shell esteja em execução, o conector de host nativo não é detectado [duplicado]

  • 44
Esta pergunta já tem respostas aqui :
URL extensions.gnome.org para gerenciar as extensões do GNOME que não funcionam em nenhum navegador (5 respostas)
Fechado há 3 anos .

Em uma nova instalação do 18.10, tentei instalar o widget de uso da CPU

https://extensions.gnome.org/extension/120/system-monitor/

nesse link ele apresenta erros:

Embora a extensão de integração do GNOME Shell esteja em execução, o conector de host nativo não é detectado

system-monitor monitoring gnome-shell gnome-shell-extension
  • 1 respostas
  • 133556 Views
Martin Hope
Scott Stensland
Asked: 2018-11-03 17:08:37 +0800 CST

clique duas vezes no texto no terminal seleciona além do limite da palavra

  • 1

Ubuntu 18.10 terminal gnome 3.30.1

No terminal gnome, quando clico duas vezes na palavra abaixo background, faz sentido destacar apenas a palavrabackground

background=true

no entanto, destacabackground=true

O terminal de outras distros permite que você edite o conjunto de caracteres para definir um limite de palavra

Eu emito isso para encontrar meu UUID

sudo dconf list /org/gnome/terminal/legacy/profiles:/

que mostra

:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/

para ver os atributos disponíveis que eu emito

sudo dconf dump /org/gnome/terminal/legacy/profiles:/

resultado :

[:b1dcc9dd-5262-4d8d-a863-c897e6d979b9]
default-size-rows=42
default-size-columns=142
use-transparent-background=true
use-theme-colors=false
use-theme-transparency=false
scrollback-unlimited=true
background-color='rgb(28,30,31)'
background-transparency-percent=3
audible-bell=false

abaixo usado para trabalhar em versões anteriores do ubuntu para definir o atributoword-char-exceptions

sudo dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/word-char-exceptions '@ms "-#%&+,./:=?@_~"'  

nenhuma das respostas aqui funciona em 18.10 Posso especificar quais caracteres definem o limite de seleção de clique duplo no Terminal do GNOME?

ATUALIZAÇÃO aqui é o que funciona

gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ word-char-exceptions  '@ms "-,.?%&#_+@~·/"' 

apenas substitua b1dcc9dd-5262-4d8d-a863-c897e6d979b9pelo seu próprio valor UUID

gnome-terminal dconf
  • 2 respostas
  • 674 Views
Martin Hope
Scott Stensland
Asked: 2018-11-01 16:43:59 +0800 CST

Como desabilitar a maximização automática da nova janela no 18.10 (GNOME) [duplicado]

  • 11
Esta pergunta já tem respostas aqui :
Como desabilito a maximização automática de janelas recém-lançadas no GNOME? (4 respostas)
Fechado há 3 anos .

Em qualquer aplicativo 18.10, quando tenho uma janela aberta que é muito ampla e, em seguida, abro uma nova janela do mesmo aplicativo, a nova janela maximizará automaticamente seu tamanho. Como posso desabilitar essa maximização automática na criação de uma nova janela? Se for possível, desejo desabilitar qualquer tipo de comportamento de janela de maximização automática

Eu tentei seguir a solução sugerida de 18.04 que não funciona em 18.10:

Abra o Terminal e execute

gsettings set org.gnome.mutter edge-tiling false

Você também pode ter que correr

gsettings set org.gnome.shell.overrides edge-tiling false

(18.04) Como desabilitar o redimensionamento da janela ao tocar acidentalmente em uma das bordas da tela?

gnome resize gnome-shell window 18.10
  • 1 respostas
  • 4897 Views

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