Solved

Error regarding installation of RPM package

Posted on 2016-09-26
5
43 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 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
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 …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now