Solved

Error regarding installation of RPM package

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
EXCHANGE. LINUX, SYMANTEC MESSAGING GATEWAY 2 74
How does PHP Storm display on Linux high resolution laptops? 1 90
DB2 9.7 Grant Execute SP 4 60
phpmyadmin memory error 55 94
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

734 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