LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   I can't open the tar ball and install the program (https://www.linuxquestions.org/questions/linux-general-1/i-cant-open-the-tar-ball-and-install-the-program-259617/)

Gins 12-01-2004 11:45 AM

I am still struggling with this problem. Now I think the reason for failing to copy the files from the CD on to my Linux is the following read-only message.
Because after the completion of mounting process, I could see all the files inside the CD. Then I wrote the cp command to copy. Though it didn't giveme any message, it didn't work.

What is the meaning of the following message? My understanding is that the mounting worked fine. However, the files inside the CD are write-protected and read-only. So you can't copy them.

Please help me


[root@h27n2fls301o1037 root]# mount /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only


-------------------------------------------------------------------------------------------------------------------

Afterwards, I wrote cd /mnt/cdrom command.
It worked fine too. Thrn I wrote the ls command to see all the files in the CD. It worked too.
It contains a folder called Mandrake. I saw a lot of files inside
Please see the following:

[root@h27n2fls301o1037 root]# cd /mnt/cdrom
[root@h27n2fls301o1037 cdrom]#
[root@h27n2fls301o1037 cdrom]# ls
Mandrake/
[root@h27n2fls301o1037 cdrom]#


Though the mounting process worked, it won' t allow me to copy file from the CD. Am I wrong? Please help me.

perfect_circle 12-02-2004 06:02 AM

Quote:

Though the mounting process worked, it won' t allow me to copy file from the CD. Am I wrong? Please help me.
be more specific. What command do you use, how and what error dou you get

masand 12-02-2004 06:51 AM

hi there
if they are in read only mode then u can't delete them but u can always copy them
also are u doing this all as a super user(username=root)
u can also browse that CD using any file manager
also when u lookup the contetns of that CD, and try to copy the file

what errros do u get??? post them

regards

UltimaGuy 12-02-2004 10:00 AM

Hi there...

You are using KDE or GNOME...am I right?

Just use Konqueror or Nautilus to go to /mnt/cdrom, then browse till you get to the urpmi.rpm package...

Now just right click on it and select copy. Then go to the target folder.. (u can even do it from ur home folder) and right click and select the "paste" option.

Now open your terminal...go to the directory u copied the file and do
rpm -ivh urpmi.rpm (The correct name must be specified here).

After this u can urpmi <any package> to install it.

You must do all this as root, as it will be very easy for you.

I hope this helps :)

Gins 12-02-2004 10:01 AM

(1)
[root@h27n2fls301o1037 root]# mount /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only

The above shows I mounted the cdrom drive properly.
--------------------------------------------------------------------------------------------------------------------------------------------------------
(2)

[root@h27n2fls301o1037 root]# cd /mnt/cdrom
[root@h27n2fls301o1037 cdrom]# ls
Mandrake/
The above shows I went into the cdrom directory on the CD and ran the ls command. The ls command shows that there is a folder called Mandrake.
----------------------------------------------------------------------------------------------------------------------------------------------------
(3)

[root@h27n2fls301o1037 Mandrake]# ls
RPMS3/
[root@h27n2fls301o1037 Mandrake]# cd RPMS3/
[root@h27n2fls301o1037 RPMS3]# ls

The above shows I went into the Mandrake folder and ran the ls command. It showed that there is a folder called RPMS3. i went into the RPMS3 folder and ran the ls command.
------------------------------------------------------------------------------------------------------------------------------------------------------

(4)

I found a lot of files inside the RPMS3 folder and one of them was the following:

urpmi.setup-0.4.4-4mdk.noarch.rpm
-------------------------------------------------------------------------------------------------------------------------------------------------------
(5)

[root@h27n2fls301o1037 RPMS3]# cp urpmi.setup-0.4.4-4mdk.noarch.rpm /plugins2
[root@h27n2fls301o1037 RPMS3]#

The above shows that I copied the 'urpmi.setup-0.4.4-4mdk.noarch.rpm' to a folder called plugisn2
--------------------------------------------------------------------------------------------------------------------------------------------
(6)

[root@h27n2fls301o1037 heden]# cd plugins2
[root@h27n2fls301o1037 plugins2]# ls
[root@h27n2fls301o1037 plugins2]# ls -a

./ ..//


The above shows I went deep into the plugins2 folder. Then I ran the ls -s command. The output was nothing as you see it. This is the problem.

On the surface, the copying process was successful. In reality, nothing was copied. This is the problem.

Why it didn't tell me that ' urpmi.setup-0.4.4-4mdk.noarch.rpm ' is there?

UltimaGuy 12-02-2004 10:05 AM

Try this : after copying :

# cd /plugins2

Now give ls and I think your urpmi package will be there :)

masand 12-02-2004 10:07 AM

hi there
at this point

"[root@h27n2fls301o1037 heden]# cd plugins2"
run
cd /plugins2

since u have coped the urpmi file to /plugins2
maybe u are going to a different /plugins2
also make sure u are "root"

regards

perfect_circle 12-02-2004 10:36 AM

you seem to have problems with linux console commands.

try this http://www.linuxcommand.org/
It's really nice for newbies

Gins 12-02-2004 10:49 AM

[root@h27n2fls301o1037 RPMS3]# cp urpmi.setup-0.4.4-4mdk.noarch.rpm /plugins2
cp: overwrite `/plugins2'? y
[root@h27n2fls301o1037 RPMS3]# cd /plugins2
-bash: cd: /plugins2: Not a directory

Ultimaguy suggested the above. The funny answer is plugins2 is not a directory. It is a directory.
I logged on as an ordinary user and ran the ls command. Please see the following:

[heden@h27n2fls301o1037 heden]$ ls

new~
Opera/
Patricia1.sxw
plugins/
plugins2/
R1/
R2/
R3/
R4/
R5/
R6/
Raschida100.sxw
rubbish
rubbish~

As you see I have a folder called plugins2. I have many folders. I have a file called rubbish. I wrote a letter in my Star office program and named Patricia1.sxw

Gins 12-02-2004 10:58 AM

Masand wants me to run the following:

[root@h27n2fls301o1037 heden]# cd plugins2
[root@h27n2fls301o1037 plugins2]# cd /plugins2
-bash: cd: /plugins2: Not a directory


It too says plugins2 is not a directory. Something is weird. I don't know these strange things.

masand 12-02-2004 10:59 AM

Quote:

Originally posted by Gins
[root@h27n2fls301o1037 RPMS3]# cp urpmi.setup-0.4.4-4mdk.noarch.rpm /plugins2
cp: overwrite `/plugins2'? y
[root@h27n2fls301o1037 RPMS3]# cd /plugins2
-bash: cd: /plugins2: Not a directory

Ultimaguy suggested the above. The funny answer is plugins2 is not a directory. It is a directory.
I logged on as an ordinary user and ran the ls command. Please see the following:

[heden@h27n2fls301o1037 heden]$ ls

new~
Opera/
Patricia1.sxw
plugins/
plugins2/
R1/
R2/
R3/
R4/
R5/
R6/
Raschida100.sxw
rubbish
rubbish~

As you see I have a folder called plugins2. I have many folders. I have a file called rubbish. I wrote a letter in my Star office program and named Patricia1.sxw

i am againg telling u to do all this with he user "root"
even if u are able to copy the file then u won't be able to install that

so i again ask to be user root

regards

Gins 12-02-2004 11:19 AM

I oblige to you and do it again. Please wait.

perfect_circle 12-02-2004 11:36 AM

Quote:

[heden@h27n2fls301o1037 heden]$ ls

new~
Opera/
Patricia1.sxw
plugins/
plugins2/
R1/
R2/
R3/
R4/
R5/
R6/
Raschida100.sxw
rubbish
rubbish~
I've seen you using ls in another thread, and i think you don't get the picture.
When you simply type ls, you get a list of the entries of the working directory.
use:
pwd
to see your working directory.
the plugins2 directory listened here is probably
/home/heden/plugins2/ and not /plugins2
do
Code:

cd /
ls

or simply
Code:

ls /
to see what your root (/) directory contains

Gins 12-02-2004 11:46 AM

[root@h27n2fls301o1037 root]# This is my root.

[root@h27n2fls301o1037 root]# cd plugins2
-bash: cd: plugins2: No such file or directory


[root@h27n2fls301o1037 root]# cd plugins2/
-bash: cd: plugins2/: No such file or directory


[root@h27n2fls301o1037 root]# cd /plugins2
-bash: cd: /plugins2: Not a directory


The above three command shows that you can't go to the plugins2 folder while sitting on the root.

-------------------------------------------------------------------------------------------------------------------

The following is the way to do it.

[root@h27n2fls301o1037 root]# cd /home/heden/plugins2
[root@h27n2fls301o1037 plugins2]#

The funny thing is that the ls command shows nothing inside.

Masand wants me to go to root and do these things. I can't do anything from the root. Of course I am logged on to the system as a root user while performing all these commands.

Plugins2 folder doesn't recognize from the root. It is in the heden folder.
You find the plugins2 in the /home/heden .


From theroot, I ran the ls command and the results is the following:

[root@h27n2fls301o1037 root]# ls
drakx/ tmp/

There are two folders under the root and the tmp folder has two folders inside.


[root@h27n2fls301o1037 tmp]# ls
mc-root/ orbit-root/




---------------------------------------------------------------------------------------------------------------------------------------------
[root@h27n2fls301o1037 root]# ls drakx/
auto_inst.cfg.pl ddebug.log install.log README replay_install.img report.bug.gz stage1.log
--------------------------------------------------------------------------------------------------------------------------------------




--------------------------------------------------------------------------------------------------------------------------------------------------------
[root@h27n2fls301o1037 root]# ls -a
./ .bash_logout .cshrc .fullcircle/ .gimp-1.2/ .gnome2_private/ .mozilla/ .vimrc
../ .bash_profile drakx/ .gconf/ .gnome/ .gstreamer/ .tcshrc .xauthJnkUyh
.bash_history .bashrc .fonts.cache-1 .gconfd/ .gnome2/ .mc/ tmp/ .Xdefaults
-------------------------------------------------------------------------------------------------------------------------------------------------------

perfect_circle 12-02-2004 11:50 AM

Quote:

[root@h27n2fls301o1037 RPMS3]# cp urpmi.setup-0.4.4-4mdk.noarch.rpm /plugins2
also this command will copy urpmi.setup-0.4.4-4mdk.noarch.rpm to the root directory (/) and rename it to plugins2.
No doubt that plugin2 is not a directory.
if you have a directory /plugins2 (do ls / to see)
you should do
Code:

[root@h27n2fls301o1037 RPMS3]# cp urpmi.setup-0.4.4-4mdk.noarch.rpm /plugins2/


All times are GMT -5. The time now is 06:23 AM.