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
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1162356
Accepted
fish24
fish24
Asked: 2019-08-01 02:36:45 +0800 CST2019-08-01 02:36:45 +0800 CST 2019-08-01 02:36:45 +0800 CST

无法修复 Ubuntu 16.04 中损坏的软件包

  • 772

我正在尝试运行此命令:sudo apt install -f

我有这个错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  snapd-login-service
Use 'sudo apt autoremove' to remove it.
0 to upgrade, 0 to newly install, 0 to remove and 4 not to upgrade.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up ros-kinetic-librealsense (1.12.1-0xenial-20190607-170900-0800) ...

Kernel preparation unnecessary for this kernel.  Skipping...

Running the pre_build script:

dkms: Pre-build script started...

Downloading kernel sources...
Reading package lists...
Picking 'linux-signed-hwe' as source package instead of 'linux-image-4.15.0-55-generic'
Need to get 12.4 kB of source archives.
Get:1 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main linux-signed-hwe 4.15.0-55.60~16.04.2 (dsc) [1,829 B]
Get:2 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main linux-signed-hwe 4.15.0-55.60~16.04.2 (tar) [10.6 kB]
dpkg-source: info: extracting linux-signed-hwe in linux-signed-hwe-4.15.0
dpkg-source: info: unpacking linux-signed-hwe_4.15.0-55.60~16.04.2.tar.xz
W: Can't drop privileges for downloading as file 'linux-signed-hwe_4.15.0-55.60~16.04.2.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Fetched 12.4 kB in 0s (237 kB/s)
grep: drivers/media/usb/uvc/uvc_driver.c: No such file or directory
INFO: No Intel RealSense(TM) cameras are currently supported.
Patching uvcvideo sources...
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/drivers/media/usb/uvc/Makefile b/drivers/media/usb/uvc/Makefile
|index c26d12fdb8f4..d86cf22155d1 100644
|--- a/drivers/media/usb/uvc/Makefile
|+++ b/drivers/media/usb/uvc/Makefile
--------------------------
File to patch: Picking 'linux-signed-hwe' as source package instead of 'linux-image-4.15.0-55-generic'
Picking 'linux-signed-hwe' as source package instead of 'linux-image-4.15.0-55-generic': No such file or directory
File to patch:  

请帮忙!

kernel patch 16.04
  • 1 1 个回答
  • 673 Views

1 个回答

  • Voted
  1. Best Answer
    fish24
    2019-08-01T05:42:35+08:002019-08-01T05:42:35+08:00

    我设法解决了它。

    我按 Ctrl + C 停止该过程,然后我看到:

    File to patch: ^Cdpkg: error processing package ros-kinetic-librealsense (--configure):
     subprocess installed post-installation script was interrupted
    dpkg: dependency problems prevent configuration of ros-kinetic-realsense-camera:
     ros-kinetic-realsense-camera depends on ros-kinetic-librealsense; however:
      Package ros-kinetic-librealsense is not configured yet.
    
    dpkg: error processing package ros-kinetic-realsense-camera (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-bringup:
     ros-kinetic-turtlebot-bringup depends on ros-kinetic-realsense-camera; however:
      Package ros-kinetic-realsense-camera is not configured yet.
    
    dpkg: error processing package ros-kinetic-turtlebot-bringup (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot:
     ros-kinetic-turtlebot depends on ros-kinetic-turtlebot-bringup; however:
      Package ros-kinetic-turtlebot-bringup is not configured yet.
    
    dpkg: error processing package ros-kinetic-turtlebot (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-teleop:
     ros-kinetic-turtlebot-teleop depends on ros-kinetic-turtlebot-bringup; however:
      Package ros-kinetic-turtlebot-bringup is not configured yet.
    
    dpkg: error processing package ros-kinetic-turtlebot-teleop (--configure):
     dependency problems - leaving unconfigured
    Processing triggers for libc-bin (2.23-0ubuntu11) ...
    Errors were encountered while processing:
     ros-kinetic-librealsense
     ros-kinetic-realsense-camera
     ros-kinetic-turtlebot-bringup
     ros-kinetic-turtlebot
    

    我用了:sudo dpkg --purge <the packages which could not be processed>

    然后:sudo apt install debian-keyring linux-source-4.15.0 (4.15.0是内核版本)

    • 2

相关问题

  • 如何让我的电脑中的风扇在暂停时关闭?[关闭]

  • 为自定义 PPA 修补 Wine 的正确方法是什么?

  • 当上游维护者似乎不活跃时,如何将补丁应用于包?

  • Ubuntu 是否支持与 SSD 一起使用的 TRIM 命令?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

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