Terminal command

I need to execute apt-cdrom to designate the pendrive using LM 18.3x 'live". (instead of CD-Rom)

Rick

Then, by all means, do it. In other words: what is your problem?

bakunin

LOL Guess some folks have to have it spelled out. I need to know what the command for implementing apt-cdrom to configure recognition of a pendrive running "live" LM 18.3. Yes, apt-cdrom is the start; what must be added to the command?

Well, sorry for being so dumb that i immediately recognised apt-cdrom as a valid command and for being ignorant enough to think that everybody can read a man page just the way i do.

Issue man apt-cdrom to get a complete list of possible arguments along with an explanation of what they mean.

I hope this helps.

bakunin

2 Likes

I also do not understand very well

RE: backunin

Your sarcasm was duly noted if only for it being so amusing!

E: Failed to fetch cdrom://Linux Mint 18.3 _Sylvia_ - Release amd64 20171213/dists/xenial/contrib/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
sudo apt-get cdrom
E: Invalid operation cdrom

I did look at the man. My point was I wasn't sure how to set the command up. You might look at the entire command/process, then perhaps you'll see why your sarcasm was so amusing.

No need to become mocking and thus violate forum rules. Bakunin certainly was not the only one to stumble over your initial post and rightly asked for a better specification. From then on, the discussion derailed to some extent.
Let's get back to a serious, factual, objective discussion.

It's usual practice in these forums to explain a problem to a certain not too superficial extent to keep people from guessing. Adding one's own attempts (and, even better, failures!) shows what has been tried and can help further in getting to an satisfying answer.

Were that too much effort for some requestor, what effort would they expect from the people in here dealing with their problem?

1 Like

Once you stop being amused from my sarcasm you might notice the subtle difference between what i suggested and what you - by your own admission - executed. I am not sure but what you posted suggests that you might have looked at the wrong man page.

Anyhow, since you were busy making fun of my obviously lacking intellectual capacity i took the time to look up the man page myself. So, along with a big apology for not being fluent in mind reading, here is what i found, the relevant parts are marked bold by me:

# man apt-cdrom
[...]
SYNOPSIS
       apt-cdrom [-rmfan] [-d=cdrom_mount_point] [-o=config_string]
                 [-c=config_file] {add | ident | {-v | --version} |
                 {-h | --help}}
[...]
       apt-cdrom is used to add a new CD-ROM to APT's list of available
       sources.  apt-cdrom takes care of determining the structure of the disc
       as well as correcting for several possible mis-burns and verifying the
       index files.
[...]
       add
           add is used to add a new disc to the source list. It will unmount
           the CD-ROM device, prompt for a disc to be inserted and then
           proceed to scan it and copy the index files.
[...]
       -d, --cdrom
           Mount point; specify the location to mount the CD-ROM. This mount
           point must be listed in /etc/fstab and properly configured.
[...]
       -m, --no-mount
           No mounting; prevent apt-cdrom from mounting and unmounting the
           mount point.

So, since i suppose you don't want to mount/unmount the pen drive (you see, i am getting better at reading minds) you mount the pen drive at /some/where , then issue

# apt-cdrom -m -d=/some/where add

and you are done.

I hope this helps.

bakunin

2 Likes