Results 1 to 6 of 6

Thread: sh: Can't open /media/cdrom/cdromupgrade

  1. #1
    Join Date
    Dec 2009
    Beans
    145

    Exclamation sh: Can't open /media/cdrom/cdromupgrade

    Hi All ,

    I am trying to upgrade from ubuntu 10.04 to 10.10 via the alternate CD/DVD , following the instruction mentioned at the link https://help.ubuntu.com/community/MaverickUpgrades

    after executing the last step which is :
    Code:
    gksu "sh /media/cdrom/cdromupgrade"
    I am getting error
    Code:
    sh: Can't open /media/cdrom/cdromupgrade

  2. #2
    Join Date
    Mar 2010
    Location
    Ohio
    Beans
    465
    Distro
    Kubuntu

    Re: sh: Can't open /media/cdrom/cdromupgrade

    Quote Originally Posted by techbrainless View Post
    Hi All ,

    I am trying to upgrade from ubuntu 10.04 to 10.10 via the alternate CD/DVD , following the instruction mentioned at the link https://help.ubuntu.com/community/MaverickUpgrades

    after executing the last step which is :
    Code:
    gksu "sh /media/cdrom/cdromupgrade"
    I am getting error
    Code:
    sh: Can't open /media/cdrom/cdromupgrade
    Are you running that command literally?

    You'll probably have to change the directory to whatever it is on your system. Type
    Code:
    ls -l /media
    to see what the CD might be mounted as on your system.

  3. #3
    Join Date
    Dec 2009
    Beans
    145

    Re: sh: Can't open /media/cdrom/cdromupgrade

    Thanks Ranko Kohime for your reply,

    Actually /media/cdrom exists but the file "cdromupgrade" does not exist .

  4. #4
    Join Date
    Mar 2010
    Location
    Ohio
    Beans
    465
    Distro
    Kubuntu

    Re: sh: Can't open /media/cdrom/cdromupgrade

    Quote Originally Posted by techbrainless View Post
    Thanks Ranko Kohime for your reply,

    Actually /media/cdrom exists but the file "cdromupgrade" does not exist .
    Hmm... Perhaps this then? gksu is generally for graphical applications, and I don't know how it reacts with command-line programs like sh... So use sudo instead.

    And also, shorten the path to just the cdrom, which does exist, like so.
    Code:
    sudo sh /media/cdrom
    EDIT: Wait, that won't do anything but give you a root shell. I just read the update page, are you mounting the ISO image from your hard drive? If so, make sure it mounted and you can see the contents. It should show up like a regular CD-ROM, and be browsable, etc. Then the original command should work.
    Last edited by Ranko Kohime; July 4th, 2011 at 04:21 PM.

  5. #5
    Join Date
    Dec 2009
    Beans
    145

    Re: sh: Can't open /media/cdrom/cdromupgrade

    Thanks Ranko Kohime for your reply,

    sudo sh /media/cdrom
    I have executed the command but nothing happened ,

    by the way it mounted and I can see the contents. It shows up like a regular CD-ROM, and it is browsable, etc.
    Last edited by techbrainless; July 4th, 2011 at 07:44 PM.

  6. #6
    Join Date
    Mar 2010
    Location
    Ohio
    Beans
    465
    Distro
    Kubuntu

    Re: sh: Can't open /media/cdrom/cdromupgrade

    I realized it wouldn't do much after I posted that.

    'cdromupgrade' is a program the instructions are expecting will be on the ISO image/CDROM, and it's not there, so...

    You either have the wrong ISO/CDROM, or a bad image.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •