Solved

Error regarding installation of RPM package

Posted on 2016-09-26
5
67 Views
Last Modified: 2016-09-27
This is a screen shot showing the package we want to install inside the directory.  Note the error at the bottom of the screenshot.

Please advise.  TIA
Capture.PNG
0
Comment
Question by:Michael Cantrall
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:Kent W
ID: 41816390
the leading / in your path /Packages is telling the system "this is from root".
Are the files actually in /Packages, from the very root /?

If you do a
cd /
then
list -l
Do you see "Packages" in that list?

If you can cd into the directory where the rpms reside, then do a
pwd
This will print out your full working directly path.
0
 

Author Comment

by:Michael Cantrall
ID: 41816492
Well the path was wrong as well as the file name.  Using correct path and file name and error is still present.

Correct path is /media/Packages
Correct file name: dhcp-4.1.1-34.P1.e16.x86_64.rpm
Command as written: cp /media/Packages/dhcp-4.1.1-34.P1.e16.x86_64.rpm /tmp

Error: cp: cannot stat 'cp /media/Packages/dhcp-4.1.1-34.P1.e16.x86_64.rpm': No such file or directory.

Physical DVD is in host and mounted in Linux VM
Capture2.PNG
0
 

Author Comment

by:Michael Cantrall
ID: 41816696
Further assistance is appreciated.
0
 
LVL 12

Accepted Solution

by:
Kent W earned 500 total points
ID: 41816819
Can you so an
 ls -l /media/Packages/dhcp-4.1.1-34.P1.e16.x86_64.rpm
and have it give you output or does it say no suck file or directory?

if you can physically cd into /media/Packages/, you can try
cp ./dhcp-4.1.1-34.P1.e16.x86_64.rpm /tmp
(notice the dot (.) before the leading /, which means "relative to where I am typing from"
OR, while in "Packages" directory, do a
pwd
Which will give you to the full directory path.

You can also make use of tab auto-complete. Give your cp command, then type the first couple of letters in "media", hit tab and let it auto-complete, give the first few letters of Packages, hit tab, first few letters of your file dhcp- hit tab, until you have the full path and file name. Since you let the system find it itself, you should have the complete accepted path with correct.
0
 

Author Comment

by:Michael Cantrall
ID: 41817689
On this ls -l /media/Packages/dhcp-4.1.1-34.P1.e16.x86_64.rpm, the response was no such file or directory.
This also failed cp ./dhcp-4.1.1-34.P1.e16.x86_64.rpm /tmp, however after modifying to this string cp ./dhcp-4.1.1-34.P1.e16.x86_64.rpm /tmp/ the file copied successfully.

Appreciate the assistance.
0

Featured Post

Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question