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-543795

Py-ser's questions

Martin Hope
Py-ser
Asked: 2024-01-04 22:09:27 +0800 CST

O atualizador de software não me permite marcar algumas caixas

  • 4

O atualizador de software no Ubuntu 22.04 mostra duas atualizações iguais disponíveis para GCC: GNU Compiler collection (22 kb)cada uma, mas sua caixa não pode ser marcada.

Se eu rodar sudo apt-get upgradeem um terminal ele encontra 8 pacotes não atualizados:

gcc-10-base gcc-10-base:i386 python3-software-properties 
python3-update-manager software-properties-common software-properties-gtk 
update-manager update-manager-core

EDITAR:

$ apt policy gcc-10-base
gcc-10-base:
  Installed: 10.5.0-1ubuntu1~20.04
  Candidate: 10.5.0-1ubuntu1~22.04
  Version table:
     10.5.0-1ubuntu1~22.04 500
        500 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages
 *** 10.5.0-1ubuntu1~20.04 100
        100 /var/lib/dpkg/status
     10.3.0-15ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
user@ubuntu:~$ apt policy gcc-10-base:i386
gcc-10-base:i386:
  Installed: 10.5.0-1ubuntu1~20.04
  Candidate: 10.5.0-1ubuntu1~22.04
  Version table:
     10.5.0-1ubuntu1~22.04 500
        500 http://archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-security/universe i386 Packages
 *** 10.5.0-1ubuntu1~20.04 100
        100 /var/lib/dpkg/status
     10.3.0-15ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe i386 Packages

o que estou perdendo?

apt
  • 1 respostas
  • 50 Views
Martin Hope
Py-ser
Asked: 2022-05-26 23:04:32 +0800 CST

apt --purge autoremove não consegue encontrar kernels mais antigos

  • 0

Estou no Ubuntu 20.04 e estou tentando entender o que está acontecendo com meus kernels Linux, e há algo que me parece estranho. O kernel atual deve ser:

@precision-3551:~$ uname -r
5.13.0-44-generic

Mas também posso ver que existem outros kernels instalados. Uma coisa curiosa é que os kernels instalados são 5.13ou 5.4, sem nada entre:

@precision-3551:~$ dpkg --list | egrep -i --color 'linux-image|linux-headers'
ii  linux-headers-5.0.0-1034-oem-osp1          5.0.0-1034.39                       amd64        Linux kernel headers for version 5.0.0 on 64 bit x86 SMP
ii  linux-headers-5.13.0-41-generic            5.13.0-41.46~20.04.1                amd64        Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
ii  linux-headers-5.13.0-44-generic            5.13.0-44.49~20.04.1                amd64        Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
ii  linux-headers-5.4.0-113                    5.4.0-113.127                       all          Header files related to Linux kernel version 5.4.0
ii  linux-headers-5.4.0-113-generic            5.4.0-113.127                       amd64        Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
ii  linux-headers-generic                      5.4.0.113.117                       amd64        Generic Linux kernel headers
ii  linux-headers-generic-hwe-20.04            5.13.0.44.49~20.04.28               amd64        Generic Linux kernel headers
rc  linux-image-5.0.0-1034-oem-osp1            5.0.0-1034.39                       amd64        Signed kernel image oem-osp1
ii  linux-image-5.13.0-41-generic              5.13.0-41.46~20.04.1                amd64        Signed kernel image generic
ii  linux-image-5.13.0-44-generic              5.13.0-44.49~20.04.1                amd64        Signed kernel image generic
rc  linux-image-5.4.0-100-generic              5.4.0-100.113                       amd64        Signed kernel image generic
rc  linux-image-5.4.0-104-generic              5.4.0-104.118                       amd64        Signed kernel image generic
rc  linux-image-5.4.0-105-generic              5.4.0-105.119                       amd64        Signed kernel image generic
rc  linux-image-5.4.0-107-generic              5.4.0-107.121                       amd64        Signed kernel image generic
rc  linux-image-5.4.0-109-generic              5.4.0-109.123                       amd64        Signed kernel image generic
rc  linux-image-5.4.0-110-generic              5.4.0-110.124                       amd64        Signed kernel image generic
ii  linux-image-5.4.0-113-generic              5.4.0-113.127                       amd64        Signed kernel image generic
rc  linux-image-5.4.0-65-generic               5.4.0-65.73~18.04.1                 amd64        Signed kernel image generic
rc  linux-image-5.4.0-66-generic               5.4.0-66.74~18.04.2                 amd64        Signed kernel image generic
rc  linux-image-5.4.0-70-generic               5.4.0-70.78~18.04.1                 amd64        Signed kernel image generic
rc  linux-image-5.4.0-71-generic               5.4.0-71.79~18.04.1                 amd64        Signed kernel image generic
rc  linux-image-5.4.0-72-generic               5.4.0-72.80~18.04.1                 amd64        Signed kernel image generic
rc  linux-image-5.4.0-73-generic               5.4.0-73.82~18.04.1                 amd64        Signed kernel image generic
rc  linux-image-5.4.0-74-generic               5.4.0-74.83~18.04.1                 amd64        Signed kernel image generic
rc  linux-image-5.4.0-77-generic               5.4.0-77.86~18.04.1                 amd64        Signed kernel image generic
rc  linux-image-5.4.0-80-generic               5.4.0-80.90~18.04.1                 amd64        Signed kernel image generic
rc  linux-image-5.4.0-81-generic               5.4.0-81.91~18.04.1                 amd64        Signed kernel image generic
rc  linux-image-5.4.0-84-generic               5.4.0-84.94~18.04.1                 amd64        Signed kernel image generic
rc  linux-image-5.4.0-86-generic               5.4.0-86.97~18.04.1                 amd64        Signed kernel image generic
rc  linux-image-5.4.0-87-generic               5.4.0-87.98~18.04.1                 amd64        Signed kernel image generic
rc  linux-image-5.4.0-89-generic               5.4.0-89.100~18.04.1                amd64        Signed kernel image generic
rc  linux-image-5.4.0-90-generic               5.4.0-90.101                        amd64        Signed kernel image generic
rc  linux-image-5.4.0-91-generic               5.4.0-91.102                        amd64        Signed kernel image generic
rc  linux-image-5.4.0-92-generic               5.4.0-92.103                        amd64        Signed kernel image generic
rc  linux-image-5.4.0-94-generic               5.4.0-94.106                        amd64        Signed kernel image generic
rc  linux-image-5.4.0-96-generic               5.4.0-96.109                        amd64        Signed kernel image generic
rc  linux-image-5.4.0-97-generic               5.4.0-97.110                        amd64        Signed kernel image generic
rc  linux-image-5.4.0-99-generic               5.4.0-99.112                        amd64        Signed kernel image generic
ii  linux-image-generic                        5.4.0.113.117                       amd64        Generic Linux kernel image
ii  linux-image-generic-hwe-20.04              5.13.0.44.49~20.04.28               amd64        Generic Linux kernel image
ii  linux-image-oem-osp1                       5.4.0.113.117                       amd64        Depends on the generic kernel image (dummy transitional package)
@precision-3551:~$ dpkg --list | grep -i -E --color 'linux-image|linux-kernel' | grep '^ii'
ii  linux-image-5.13.0-41-generic              5.13.0-41.46~20.04.1                amd64        Signed kernel image generic
ii  linux-image-5.13.0-44-generic              5.13.0-44.49~20.04.1                amd64        Signed kernel image generic
ii  linux-image-5.4.0-113-generic              5.4.0-113.127                       amd64        Signed kernel image generic
ii  linux-image-generic                        5.4.0.113.117                       amd64        Generic Linux kernel image
ii  linux-image-generic-hwe-20.04              5.13.0.44.49~20.04.28               amd64        Generic Linux kernel image
ii  linux-image-oem-osp1 

E quando tento limpar, não recebo nenhum listado:

@precision-3551:~$ sudo apt --purge autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Eu também examinei /etc/apt/apt.conf.d/01autoremove-kernels, conforme sugerido por esta resposta , mas esse arquivo não existe no meu caso. Acho que removendo os 5.4kernels posso economizar um pouco de espaço. Como posso fazer isso ou há algum sinal de que não devo?

apt
  • 2 respostas
  • 213 Views
Martin Hope
Py-ser
Asked: 2021-12-21 13:23:16 +0800 CST

E: O pacote 'python-scipy' não tem candidato para instalação

  • 2

Ao instalar um software, estou encontrando o seguinte erro várias vezes:

$ sudo python setup.py install
Traceback (most recent call last):
  File "setup.py", line 24, in <module>
    from software_name import PACKAGE_NAME
  File "/home/username/Softwares/software_name/__init__.py", line 29, in <module>
import scipy
ImportError: No module named scipy

Posso instalar muitos dos módulos ausentes com, por exemplo, sudo apt-get install -y python-numpy, mas às vezes recebo:

username@username:~/Softwares/software_name$ sudo apt-get install -y python-scipy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-scipy is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-scipy' has no installation candidate

E eu realmente não tenho certeza do que está acontecendo? Eu li em outro tópico que o repositório 20.04 LTS tem NumPy, mas não tem SciPy.

EDITAR:

$ sudo apt install python-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python3-pip

E: Package 'python-pip' has no installation candidate

$ pip install scipy
Requirement already satisfied: scipy in /usr/lib/python3/dist-packages (1.3.3)

$ sudo apt install python3-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-pip is already the newest version (20.0.2-5ubuntu1.6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo pip install scipy
[sudo] password for user_name: 
Requirement already satisfied: scipy in /usr/lib/python3/dist-packages (1.3.3)

$ python --version
Python 2.7.18
apt
  • 1 respostas
  • 4428 Views
Martin Hope
Py-ser
Asked: 2021-12-19 15:49:20 +0800 CST

Dois gerenciador de software?

  • 0

Ao atualizar para 20.04, aparentemente existem dois gerenciadores de software diferentes. Um deles nem tem um ícone adequado

insira a descrição da imagem aqui

Um é chamado Software, o outro Ubuntu Software. Eu acho que isso não é o que esperava?

software-center
  • 1 respostas
  • 88 Views
Martin Hope
Py-ser
Asked: 2021-12-19 01:57:27 +0800 CST

Versão do Teams no Ubuntu Software Manager

  • 0

Se eu for ao gerenciador de software do Ubuntu (20.04), posso encontrar pelo menos 3 versões para o Teams: teams-for-linux, Microsoft-Teams-insiders, Microsoft-Teams-Preview.

Qual é a melhor ou a versão/maneira correta de instalar o Teams no Ubuntu?

package-management
  • 1 respostas
  • 326 Views
Martin Hope
Py-ser
Asked: 2019-08-01 14:16:01 +0800 CST

faça `pip` usar python3.7 não padrão

  • 2

Eu sei que esta é uma pergunta semelhante às já feitas muitas vezes, mas ainda não consigo obter uma solução confiável. Eu tenho muitas versões do python instaladas no meu Ubuntu 16.04, do 2.7 ao 3.7.4 mais recente.

O padrão é o 2.7. Eu sei que não deveria mudar o padrão, porque outros já fizeram isso e isso trouxe problemas tão sérios quanto falhas no sistema. No entanto, tenho que instalar um software através do pip:

pip install damn_software

que requer python >= 3.6

:~$ pip install damn_software
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

Collecting damn_software
Using cached https://files.pythonhosted.org/packages/cc/19/632db1d5095a35b08ba000d63e1ceffaf56c730dbd259f021e1fb7a75f68/damn_software-0.1.8.tar.gz
ERROR: Command errored out with exit status 1:
 command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qDPgIM/damn_software/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qDPgIM/damn_software/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
     cwd: /tmp/pip-install-qDPgIM/damn_software/
Complete output (1 lines):
ERROR: Python (3, 5) or later is required by software-helpers for damn_software
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Eu não sei como contornar isso? Talvez um link simbólico?

EDIT : Eu tive que executar os seguintes comandos adicionais antes da instalação ser concluída:

python3.7 -m pip install --user --upgrade pip
python3.7 -m pip install your_packages
sudo apt install python3.7-dev 
python3 pip 16.04 python-2.7
  • 2 respostas
  • 11085 Views
Martin Hope
Py-ser
Asked: 2018-10-14 09:41:38 +0800 CST

Distribua a carga de trabalho entre diferentes CPUs

  • 0

No meu Ubuntu 16.04, estou executando um programa relativamente caro em termos de uso da CPU. Leva muito tempo para terminar e outras tarefas (como navegar na web) ficam mais lentas como consequência. Eu estava procurando uma maneira de melhorar o poder de computação, se possível e ao mesmo tempo saber melhor o que está acontecendo no meu laptop.

Com isso, descobri que, se eu perguntar top, o programa que estou executando mostra um uso de CPU de 100%, enquanto quando abro o System monitoruso da CPU é de apenas ~ 25% na Processesguia. Além disso, a Resourcesaba do System monitor mostra 4 CPUs, cujo uso varia de ~5 a ~100% para cada uma:

uso de CPUs

O resultado de lscpué:

@C:~$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 142
Model name:            Intel(R) Core(TM) i5-7200U CPU @2.50GHz
Stepping:              9
CPU MHz:               3099.937
CPU max MHz:           3100,0000
CPU min MHz:           400,0000
BogoMIPS:              5423.81
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              3072K
NUMA node0 CPU(s):     0-3

Existe algo que eu possa fazer para melhorar a situação, como diluir o trabalho entre as 4 CPUs? Usinge nicenão parece uma solução para minha situação.

Sei que essa pode ser uma dúvida geral que depende do tipo de programa que estou executando (digamos que seja um Pythonscript), mas estou tentando aqui obter conhecimentos gerais.

cpu-load cpu intel-cpu
  • 2 respostas
  • 3813 Views
Martin Hope
Py-ser
Asked: 2018-07-15 15:27:31 +0800 CST

O repositório não pode ser autenticado

  • -1

Eu estava seguindo este tópico para instalar wine, mas depois que adicionei o repositório sugerido e recarreguei a lista de fontes, apareceu a seguinte mensagem de erro:

W:The repository 'http://extras.ubuntu.com/ubuntu xenial Release' does not have a Release file., 
W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., 
W:See apt-secure(8) manpage for repository creation and user configuration details., 
W:The repository 'http://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu xenial Release' does not have a Release file., 
W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., 
W:See apt-secure(8) manpage for repository creation and user configuration details., 
E:Failed to fetch http://extras.ubuntu.com/ubuntu/dists/xenial/main/source/Sources  404  Not Found [IP: 2001:67c:1360:8c01::23 80], 
E:Failed to fetch http://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found, 
E:Some index files failed to download. They have been ignored, or old ones used instead.

O que há de errado aqui? Provavelmente as mensagens são claras para quem pode lê-las, mas não quero complicar ainda mais as coisas.

repository wine ppa 16.04
  • 1 respostas
  • 889 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
subwaysurfers
my femboy roommate

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve