AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-543795

Py-ser's questions

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

软件更新程序不允许我选中某些复选框

  • 4

Ubuntu 22.04 上的软件更新程序显示 GCC: GNU Compiler collection (22 kb)每个更新有两个相同的可用更新,但无法选中它们的框。

如果我sudo apt-get upgrade在终端上运行,它会发现 8 个未更新的软件包:

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

编辑:

$ 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

我缺少什么?

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

apt --purge autoremove 找不到旧内核

  • 0

我在 Ubuntu 20.04 上,我试图了解我的 Linux 内核发生了什么,但我觉得有些奇怪。当前内核应该是:

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

但我也可以看到还有其他安装的内核。一件奇怪的事情是,安装的内核要么是 要么5.13,5.4两者之间没有任何内容:

@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 

当我尝试清除时,我没有得到任何列出的:

@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.

正如this answer/etc/apt/apt.conf.d/01autoremove-kernels所建议的那样,我也调查了,但在我的情况下该文件不存在。我认为通过删除内核可以节省一些空间。我怎么能这样做,或者有任何我不应该这样做的迹象?5.4

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

E: 包 'python-scipy' 没有安装候选

  • 2

安装软件后,我多次发现以下错误:

$ 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

我可以安装许多缺少的模块,例如sudo apt-get install -y python-numpy,但有时我会得到:

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

我真的不确定发生了什么?我在另一个线程上读到 20.04 LTS 存储库有 NumPy,但没有 SciPy。

编辑:

$ 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 个回答
  • 4428 Views
Martin Hope
Py-ser
Asked: 2021-12-19 15:49:20 +0800 CST

两个软件管理器?

  • 0

升级到 20.04 后,显然有两个不同的软件管理器。其中一个甚至没有合适的图标

在此处输入图像描述

一个叫Software,另一个Ubuntu Software。我想这不是预期的?

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

Ubuntu 软件管理器上的 Teams 版本

  • 0

如果我去 Ubuntu (20.04) 软件管理器,我可以找到至少 3 个 Teams 版本:teams-for-linux、Microsoft-Teams-insiders、Microsoft-Teams-Preview。

在 Ubuntu 上安装 Teams 的最佳或正确版本/方式是什么?

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

使`pip`使用非默认python3.7

  • 2

我知道这是一个类似于已经多次问过的问题,但我仍然无法获得可靠的解决方案。我的 Ubuntu 16.04 上安装了许多版本的 python,从 2.7 到最新的 3.7.4。

默认为 2.7。我知道我不应该更改默认设置,因为其他人已经这样做了,它带来了像系统故障一样严重的问题。但是,我必须通过 pip 安装一个软件:

pip install damn_software

这需要 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.

我不知道如何解决这个问题?也许是符号链接?

编辑:在安装完成之前,我必须运行以下附加命令:

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 个回答
  • 11085 Views
Martin Hope
Py-ser
Asked: 2018-10-14 09:41:38 +0800 CST

在不同的 CPU 之间分配工作负载

  • 0

在我的 Ubuntu 16.04 上,我正在运行一个在 CPU 使用率方面相对昂贵的程序。完成需要相当长的时间,因此其他任务(如浏览网页)会变慢。我一直在寻找一种方法来提高计算能力,如果可能的话,同时更好地了解我的笔记本电脑中发生了什么。

通过这个,我发现,如果我问top,我正在运行的程序显示 CPU 使用率为 100%,而当我打开选项卡时System monitorCPU 使用率仅为 ~25% Processes。此外,Resources系统监视器中的选项卡显示 4 个 CPU,每个 CPU 的使用率从 ~5 变为 ~100%:

CPU 使用率

结果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

我可以做些什么来改善这种情况,例如稀释 4 个 CPU 之间的工作?Usingenice似乎不能解决我的情况。

我知道这可能是一个普遍的问题,取决于我正在运行的程序类型(假设它是一个Python脚本),但我想在这里获得一般知识。

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

无法对存储库进行身份验证

  • -1

我正在关注这个线程来安装wine,但是在我添加了建议的存储库并重新加载了源列表之后,出现了以下错误消息:

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.

这里有什么问题?对于那些可以阅读它们的人来说,这些信息可能很清楚,但我不想让事情变得更糟。

repository wine ppa 16.04
  • 1 个回答
  • 889 Views
Martin Hope
Py-ser
Asked: 2016-11-23 08:22:19 +0800 CST

Dell Inspiron 上的 Firefox 字体太小

  • 1

我在 Ubuntu 16.04 上使用 Firefox,但浏览器显示的网页太小。我已经尝试从preferences:contentsFirefox 面板增加字体大小,但结果非常难看。例如,如果我用谷歌搜索,可链接文本和以前一样小,而描述文本是我在preferences:contents面板中选择的字体大小。

然后我尝试安装新字体,因为这似乎是其他用户可能的解决方案。我按照这个讨论安装ttf-mscorefonts-installer. 但是,仍然没有任何改变。

Ctrl+按钮组合不是一个实际的+解决方案:它必须在每个页面上完成,并且每次我再次打开 Firefox 时。

最后我尝试了Firefox 顶部栏中的View+ Zoom,这似乎使情况有所改善。但是缩放后,当我打开其他网页时,有些显示不是很好,有些字体仍然很小(可能需要一次又一次缩放):

在此处输入图像描述

即使对于那些被放大的页面,结果也并不令人愉快,因此我相信必须有另一种解决方案可以在没有我手动调整的情况下解决问题。

我不知道这个线程是否也适用于我的笔记本电脑,所以任何关于此的建议都会很棒。无论如何,这可能是一个开始。(即使该线程中有解决方案,也不接受答案)

硬件规格在这里。

显示器分辨率:

:~$ xdpyinfo  | grep dimensions
dimensions:    1920x1080 pixels (508x285 millimeters)

会不会是显示器分辨率/dpi的问题?有哪些可能的解决方案?

firefox
  • 3 个回答
  • 2402 Views
Martin Hope
Py-ser
Asked: 2016-11-21 08:13:54 +0800 CST

`make` 返回错误:目标“libast.la”的配方失败

  • 0

我正在尝试在我的 Ubuntu 16.04 机器上从源代码安装HEASOFT 包。按照链接上的说明,我首先运行./configure (请参阅此处的输出),但之后,该命令会make返回一些错误(请参阅此处)。不幸的是,我没有立即意识到这一点,所以我也跑make install了,这可能会使问题变得更糟。

我应该/如何卸载已由这些命令“配置”的(部分)软件,以及如何以正确的方式重新安装它?

software-installation
  • 1 个回答
  • 2853 Views
Martin Hope
Py-ser
Asked: 2016-11-18 11:12:34 +0800 CST

Live-USB 不运行 sudo apt-get update

  • 2

我有 Ubuntu 16.04 和 Win10 的双启动。由于一些问题,我试图修复一些无法让 Ubuntu 启动的问题。然后我得到了一个不能正常工作的 grub,所以当我打开笔记本电脑的电源时,没有出现双启动选项,Windows 会自动启动。

因此,我尝试使用 Live Usb 进行引导修复,但sudo apt-get update命令返回以下内容:

ubuntu@ubuntu:~$ sudo apt-get update
Ign:1 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial InRelease
Hit:2 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial Release
Hit:4 http://archive.ubuntu.com/ubuntu xenial InRelease                          
Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]      
Get:6 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu xenial InRelease [17.5 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]        
Get:8 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu xenial/main amd64 Packages [1,864 B]
Get:9 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu xenial/main Translation-en [2,092 B]
Fetched 212 kB in 0s (449 kB/s)                                      

** (appstreamcli:9435): CRITICAL **: Error while moving old database out of the way.
AppStream cache update failed.
Reading package lists... Done
ubuntu@ubuntu:~$ 

这里有什么问题?

boot
  • 1 个回答
  • 3824 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve