新手求助!terminal如何终止安装程序卡在path to file,感谢各位大神的慷慨相助!

我们是菜鸟,很想起飞,请多点耐心关注和指点
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
slowly1113
帖子: 2
注册时间: 2018-11-10 6:40
系统: 16.04
送出感谢: 0
接收感谢: 0

新手求助!terminal如何终止安装程序卡在path to file,感谢各位大神的慷慨相助!

#1

帖子 slowly1113 » 2018-11-10 7:13

我不小心没有按教程下载ROS的turtlebot,直接用命令行运行了$ sudo apt-get install ros-kinetic-turtlebot* , 结果卡到了path to file 的界面, 我也不知道输入什么(网上没查到),然后 ctrl+c退出后, dpkg 可以使用一次, 之后无论是再使用还是重启后再使用 , 好像都会重新进入安装turtlebot的这个process (又是path to file) , 我尝试了 sudo killall apt-get 也没有用。

:Aadterboom 具体表现如下:

1,这是重启后在terminal随便启用一个进程

[email protected]:~$ sudo apt-get remove gnome-shell
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

2,按照上述提示,输入sudo dpkg --configure -a后,后运行一段时间然后出现 path to file,具体表现如下:

[email protected]:~$ sudo dpkg --configure -a
Setting up ros-kinetic-librealsense (1.12.1-0xenial-20180809-140204-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-38-generic'
Need to get 12.0 kB of source archives.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main linux-signed-hwe 4.15.0-38.41~16.04.1 (dsc) [1,829 B]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main linux-signed-hwe 4.15.0-38.41~16.04.1 (tar) [10.2 kB]
gpgv: Signature made Wed 10 Oct 2018 10:09:14 PM CEST using RSA key ID 70E1162B
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./linux-signed-hwe_4.15.0-38.41~16.04.1.dsc
dpkg-source: info: extracting linux-signed-hwe in linux-signed-hwe-4.15.0
dpkg-source: info: unpacking linux-signed-hwe_4.15.0-38.41~16.04.1.tar.xz
WFetched 12.0 kB in 0s (39.1 kB/s)
: Can't drop privileges for downloading as file 'linux-signed-hwe_4.15.0-38.41~16.04.1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
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:

3,出现了 file to patch, 我不知道填什么,然后只能ctrl+c退出,倒是可以运行一个其他的dpkg了,但是在运行了一个其他的dpkg process后,还是回到安装ros的这个 path to file, 且这次就不能ctrl+C退出了,以下是 control+c 以后的表现: :Cry
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
Processing triggers for libc-bin (2.23-0ubuntu10) ...
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-navigation:
ros-kinetic-turtlebot-navigation depends on ros-kinetic-turtlebot-bringup; however:
Package ros-kinetic-turtlebot-bringup is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-navigation (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-rviz-launchers:
ros-kinetic-turtlebot-rviz-launchers depends on ros-kinetic-turtlebot-bringup; however:
Package ros-kinetic-turtlebot-bringup is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-rviz-launchers (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-interactions:
ros-kinetic-turtlebot-interactions depends on ros-kinetic-turtlebot-rviz-launchers; however:
Package ros-kinetic-turtlebot-rviz-launchers is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-interactions (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-gazebo:
ros-kinetic-turtlebot-gazebo depends on ros-kinetic-turtlebot-bringup; however:
Package ros-kinetic-turtlebot-bringup is not configured yet.
ros-kinetic-turtlebot-gazebo depends on ros-kinetic-turtlebot-navigation; however:
Package ros-kinetic-turtlebot-navigation is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-gazebo (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-apps:
ros-kinetic-turtlebot-apps depends on ros-kinetic-turtlebot-navigation; however:
Package ros-kinetic-turtlebot-navigation is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-apps (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-rapps:
ros-kinetic-turtlebot-rapps depends on ros-kinetic-turtlebot-bringup; however:
Package ros-kinetic-turtlebot-bringup is not configured yet.
ros-kinetic-turtlebot-rapps depends on ros-kinetic-turtlebot-navigation; however:
Package ros-kinetic-turtlebot-navigation is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-rapps (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-calibration:
ros-kinetic-turtlebot-calibration depends on ros-kinetic-turtlebot-bringup; however:
Package ros-kinetic-turtlebot-bringup is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-calibration (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-stdr:
ros-kinetic-turtlebot-stdr depends on ros-kinetic-turtlebot-bringup; however:
Package ros-kinetic-turtlebot-bringup is not configured yet.
ros-kinetic-turtlebot-stdr depends on ros-kinetic-turtlebot-navigation; however:
Package ros-kinetic-turtlebot-navigation is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-stdr (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-follower:
ros-kinetic-turtlebot-follower depends on ros-kinetic-turtlebot-bringup; however:
Package ros-kinetic-turtlebot-bringup is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-follower (--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
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-stage:
ros-kinetic-turtlebot-stage depends on ros-kinetic-turtlebot-bringup; however:
Package ros-kinetic-turtlebot-bringup is not configured yet.
ros-kinetic-turtlebot-stage depends on ros-kinetic-turtlebot-navigation; however:
Package ros-kinetic-turtlebot-navigation is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-stage (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-actions:
ros-kinetic-turtlebot-actions depends on ros-kinetic-turtlebot-bringup; however:
Package ros-kinetic-turtlebot-bringup is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-actions (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-interactive-markers:
ros-kinetic-turtlebot-interactive-markers depends on ros-kinetic-turtlebot-bringup; however:
Package ros-kinetic-turtlebot-bringup is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-interactive-markers (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-simulator:
ros-kinetic-turtlebot-simulator depends on ros-kinetic-turtlebot-gazebo; however:
Package ros-kinetic-turtlebot-gazebo is not configured yet.
ros-kinetic-turtlebot-simulator depends on ros-kinetic-turtlebot-stage; however:
Package ros-kinetic-turtlebot-stage is not configured yet.
ros-kinetic-turtlebot-simulator depends on ros-kinetic-turtlebot-stdr; however:
Package ros-kinetic-turtlebot-stdr is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-simulator (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ros-kinetic-librealsense
ros-kinetic-realsense-camera
ros-kinetic-turtlebot-bringup
ros-kinetic-turtlebot
ros-kinetic-turtlebot-navigation
ros-kinetic-turtlebot-rviz-launchers
ros-kinetic-turtlebot-interactions
ros-kinetic-turtlebot-gazebo
ros-kinetic-turtlebot-apps
ros-kinetic-turtlebot-rapps
ros-kinetic-turtlebot-calibration
ros-kinetic-turtlebot-stdr
ros-kinetic-turtlebot-follower
ros-kinetic-turtlebot-teleop
ros-kinetic-turtlebot-stage
ros-kinetic-turtlebot-actions
ros-kinetic-turtlebot-interactive-markers
ros-kinetic-turtlebot-simulator
[email protected]:~$

4,这形成了一个死循环一样的东西,打开软件中心卸载或者更新或者是在terminal里,只要是关于dpkg的,无论killall、重启、关闭terminal都不能阻止ros错误安装卡到path to file的这个process , 我在网上搜索实在是没有得到有用的信息, 想请各位大神伸手相救,要不我这样的terminal很难受。 :Adore
头像
astolia
论坛版主
帖子: 3400
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 570 次

Re: 新手求助!terminal如何终止安装程序卡在path to file,感谢各位大神的慷慨相助!

#2

帖子 astolia » 2018-11-10 11:07

把那些包卸载掉就是了

代码: 全选

sudo dpkg --purge ros-kinetic-librealsense ros-kinetic-realsense-camera ros-kinetic-turtlebot-bringup ros-kinetic-turtlebot ros-kinetic-turtlebot-navigation ros-kinetic-turtlebot-rviz-launchers ros-kinetic-turtlebot-interactions ros-kinetic-turtlebot-gazebo ros-kinetic-turtlebot-apps ros-kinetic-turtlebot-rapps ros-kinetic-turtlebot-calibration ros-kinetic-turtlebot-stdr ros-kinetic-turtlebot-follower ros-kinetic-turtlebot-teleop ros-kinetic-turtlebot-stage ros-kinetic-turtlebot-actions ros-kinetic-turtlebot-interactive-markers ros-kinetic-turtlebot-simulator
然后你愿意去按教程下载也行,补上需要的组件重新安装也行

代码: 全选

sudo apt install debian-keyring linux-source-4.15.0
sudo apt-get install ros-kinetic-turtlebot*
slowly1113
帖子: 2
注册时间: 2018-11-10 6:40
系统: 16.04
送出感谢: 0
接收感谢: 0

Re: 新手求助!terminal如何终止安装程序卡在path to file,感谢各位大神的慷慨相助!

#3

帖子 slowly1113 » 2018-11-10 20:33

谢谢啦,我昨天实在等不及就重装系统啦
回复

回到 “初学者园地 - Ubuntu 18.10 (Cosmic Cuttlefish)”