Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Error regarding installation of RPM package

Posted on 2016-09-26
5
Medium Priority
?
71 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
  • 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month11 days, 13 hours left to enroll

916 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