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

Pandya's questions

Martin Hope
Pandya
Asked: 2020-02-07 02:54:18 +0800 CST

如何解决启动 Debian 10 时报告的一些意外错误消息?

  • 5

当 Debian 10 正式发布时,我将我的 Debian 从第 9 版升级到第 10 版。自从我升级到 Debian 10 后,我在启动时收到以下消息:

[   11.008027] pstore: Using compression: deflate
[   11.008597] pstore: crypto_comp_decompress failed, ret = -22!
[   11.008666] pstore: decompression failed: -22
[   11.008784] pstore: crypto_comp_decompress failed, ret = -22!
[   11.008845] pstore: decompression failed: -22

编辑/sys/fs/pstore:按照评论和答案中的建议清除日志文件后,pstore:消息现在消失了。但是来自的消息(如下所述)usb 1-1.5仍然存在,这些消息在引导时花费了太多时间。

最近一些关于 USB 的消息也开始在启动时闪烁:

[   91.875667] usb 1-1.5: new full-speed USB device number 81 using ehci-pci
[   91.955706] usb 1-1.5: device descriptor read/64, error -32
[   92.147658] usb 1-1.5: device descriptor read/64, error -32
[   92.335657] usb 1-1.5: new full-speed USB device number 82 using ehci-pci
[   92.415642] usb 1-1.5: device descriptor read/64, error -32
[   92.603699] usb 1-1.5: device descriptor read/64, error -32
[   92.711758] usb 1-1-port5: attempt power cycle
[   93.315668] usb 1-1.5: new full-speed USB device number 83 using ehci-pci
[   93.731705] usb 1-1.5: device not accepting address 83, error -32
[   93.811713] usb 1-1.5: new full-speed USB device number 84 using ehci-pci
[   94.227687] usb 1-1.5: device not accepting address 84, error -32
[   94.227912] usb 1-1-port5: unable to enumerate USB device

因此,这些decompression failed和unable to enumerate USB device消息在启动过程中被多次报告,因此需要更多时间才能到达登录屏幕。如何排除故障并消除这些消息以节省启动时间?

顺便说一句,系统看起来工作正常,没有任何问题,笔记本电脑的所有 USB 端口在启动后也工作正常。

这是一个完整的dmesg输出。我还附上了lscpu、lspci和lsusb的输出。

debian boot
  • 3 个回答
  • 468 Views
Martin Hope
Pandya
Asked: 2018-10-06 09:34:38 +0800 CST

在 Trisquel 8.0 上设置 hplip

  • 1

我已经升级(从 Trisquel 7.0)到 Trisquel 8.0,并进行全新安装。

当我连接到打印机 (HP LaserJet P1007) 时,它在从设置>打印机 ( system-config-printer) 添加时被检测到,我完成了设置;最后它询问是否打印测试页,但没有打印出来。我也试过打印文档,但它们并没有真正打印出来,系统显示打印成功。

虽然它在设置中显示正确添加/配置:

在此处输入图像描述

在此处输入图像描述

我不确定,但早些时候我遇到过类似的问题,当时我通过手动配置来解决它,如这里hp-setup所讨论的那样。我也尝试过,但它显示以下错误:

error: HPLIP is not installed properly or is installed without graphical support. Please reinstall HPLIP
warning: Qt/PyQt 4 initialization failed.
error: hp-setup requires GUI support (try running with --qt3). Also, try using interactive (-i) mode.

所以,(看看这将是 Qt4 提供的 GUI 的问题),我尝试了交互模式:

$ hp-setup -i

HP Linux Imaging and Printing System (ver. 3.16.3)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num       Connection  Description                                               
            Type                                                                  
  --------  ----------  ----------------------------------------------------------
  0*        usb         Universal Serial Bus (USB)                                
  1         net         Network/Ethernet/Wireless (direct connection or JetDirect)
  2         par         Parallel Port (LPT:)                                      

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 0

Using connection type: usb

error: No device selected/specified or that supports this functionality.

因此,错误是“未选择/指定或不支持此功能的设备”。

我还检查了 hp-plugin 是否安装正确,因为我记得我的打印机需要插件:

$ hp-plugin -i

HP Linux Imaging and Printing System (ver. 3.16.3)
Plugin Download and Install Utility ver. 2.1

-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.16.3 |
-----------------------------------------

The driver plugin for HPLIP 3.16.3 appears to already be installed.
Do you wish to download and re-install the plug-in? (y=yes*, n=no, q=quit) ? n

因此,如何解决“作业未打印且显示打印已完成”和“hp-setup 不工作”的问题?

注意:我也尝试过清除并重新安装 hplip,这是 Trisquel 存储库中可用的软件包版本:

$ apt-cache policy hplip
hplip:
  Installed: 3.16.3+repack0-1+8.0trisquel1
  Candidate: 3.16.3+repack0-1+8.0trisquel1
  Version table:
 *** 3.16.3+repack0-1+8.0trisquel1 500
        500 https://archive.trisquel.info/trisquel flidas-updates/main amd64 Packages
        100 /var/lib/dpkg/status
printing printer
  • 1 个回答
  • 197 Views
Martin Hope
Pandya
Asked: 2018-09-23 04:53:53 +0800 CST

如何停止/禁用无人值守升级自动启动?[复制]

  • 31
这个问题在这里已经有了答案:
无人值守升级是如何开始的,我该如何修改它的时间表? (4 个回答)
4年前关闭。

我最近在我的台式电脑上安装了 Trisquel 8.0 LTS (Flidas),它在 Trisquel 7.0 上运行了 4 年。系统变得非常缓慢。当我检查 RAM 和 CPU 使用率时,我发现 CPU 几乎处于 100 % 我top调整看看出了什么问题,发现它unattended-upgr正在消耗整个 CPU。

在此处输入图像描述

我试图通过 PID 杀死它,sudo kill 1803但过了一段时间,它又自动启动了。我知道无人值守升级旨在自动安装重要的安全更新,但我需要禁用它自动启动。

我怎么做?

unattended-upgrades trisquel
  • 1 个回答
  • 37644 Views
Martin Hope
Pandya
Asked: 2018-03-03 07:36:55 +0800 CST

如何在匹配字符串或数字后删除后续行?[复制]

  • 0
这个问题在这里已经有了答案:
显示匹配的所有文件 (7 个答案)
4 年前关闭。

假设我有一个包含以下信息的大文件(部分cat file):

33.829037   -0.113737   1.157153
33.830036   -0.113620   1.157157
33.831036   -0.113495   1.157169
33.832035   -0.113365   1.157191
33.833035   -0.113242   1.157228
33.834034   -0.113157   1.157273
33.835033   -0.113071   1.157300

第一列包含按升序排列的浮点数,假设我想删除33.832035so 之后的所有行 - 输出应该是:

33.829037   -0.113737   1.157153
33.830036   -0.113620   1.157157
33.831036   -0.113495   1.157169
33.832035   -0.113365   1.157191

我如何使用sed或适当的文本处理工具来做到这一点?

我试过在一行中第一次出现字符串后删除所有行,但在我的案例中没有成功实施。

text-processing sed
  • 2 个回答
  • 297 Views

Sidebar

Stats

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

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve