Media changed: please insert the disk labeled 'Debian GNU/Linux Announcing the arrival of...

Should man-made satellites feature an intelligent inverted "cow catcher"?

Does the Rock Gnome trait Artificer's Lore apply when you aren't proficient in History?

How do I say "this must not happen"?

Understanding piped commands in GNU/Linux

Where did Ptolemy compare the Earth to the distance of fixed stars?

Marquee sign letters

malloc in main() or malloc in another function: allocating memory for a struct and its members

Twin's vs. Twins'

Does the main washing effect of soap come from foam?

Simple Line in LaTeX Help!

.bashrc alias for a command with fixed second parameter

Plotting a Maclaurin series

How could a hydrazine and N2O4 cloud (or it's reactants) show up in weather radar?

Short story about astronauts fertilizing soil with their own bodies

What is "Lambda" in Heston's original paper on stochastic volatility models?

Problem with display of presentation

How many time has Arya actually used Needle?

What are some likely causes to domain member PC losing contact to domain controller?

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

Why is there so little support for joining EFTA in the British parliament?

3D Masyu - A Die

Why are current probes so expensive?

How do I find my Spellcasting Ability for my D&D character?

What is the proper term for etching or digging of wall to hide conduit of cables



Media changed: please insert the disk labeled 'Debian GNU/Linux



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionHome server not mounting external disksMount USB flash drive to /media/<label>How to finally mount FAT16 USB flash drivePermission Denied to rw USB contentsInstalling firmware blob for Intel Wifi USB penI can't access my USB device after mkfs.ntfs commandDebian apt-get install asks for the DVD BinaryMounting weirdnessMedia ejects when try to install Eclipse in Debian 9.2.1Erase RW disc and burn linux .iso





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







11















I installed Debian 7 using a USB flash drive "burned" from the first DVD ISO of the Debian installation CD/DVD.



I did a very minimal install without Debian desktop environment, Print server and Standard system utilities.



After installation and a reboot, I was presented with a console with the words Debian GNU/Linux 7 hostname tty1. I supplied the login username and password.



After I typed the command sudo apt-get install xorg, an error message popped up stating:



Media changed: please insert the disk labeled 'Debian GNU/Linux 7.4.0 _Wheezy_ - Official amd64 DVD Binary-1 20140208-13:47' in the drive and press Enter


I inserted the same USB flash drive into the same port and after waiting for a few seconds, I pressed Enter.



The same error message popped up.



I have tried the following steps on the advice of some of my colleagues:




  1. remove/delete all the entries in /etc/apt/sources.list and reboot the computer

  2. dmesg and fstab show that the USB thumb drive is mounted on /dev/sdb1

  3. sudo mount /dev/sdb1 /media/usb0

  4. sudo apt-cdrom -m -d /media/usb0 add


After doing the above, the following error message appears:



Using CD-ROM mount point /media/cdrom/
Identifying.......{a long string of alphanumeric characters}
Scanning disc for index files...............
Found 0 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
W: Failed to mount '/dev/sr0' to '/media/cdrom/'
E: Unable to locate any package files, perhaps this is not a Debian disc or the wrong architecture


I prefer to install Xorg (60MB) and gnome-core (400MB) from the USB stick. The NGO that I am working with is in a developing country with a very basic internet access infrastructure. Internet access is very patchy and the average download speed is less than 2 Mbps.










share|improve this question
















bumped to the homepage by Community 29 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    The apt-cdrom output says it is looking at /media/cdrom, change the command to sudo apt-cdrom -m -d=/media/usb0 add

    – fooot
    Apr 23 '14 at 16:27






  • 1





    When you change /etc/apt/sources.list, there is no need to reboot, but you must run sudo apt-get update. I'm not familiar with apt-cdrom, but I would assume that requires the same update afterwards. Also, if your internet connection is unreliable / slow, you might want to remove / comment out any online sources from /etc/apt/sources.list once you can install from local media, just so you don't have to wait for the update to contact the servers listed.

    – ssc
    Apr 24 '14 at 6:12




















11















I installed Debian 7 using a USB flash drive "burned" from the first DVD ISO of the Debian installation CD/DVD.



I did a very minimal install without Debian desktop environment, Print server and Standard system utilities.



After installation and a reboot, I was presented with a console with the words Debian GNU/Linux 7 hostname tty1. I supplied the login username and password.



After I typed the command sudo apt-get install xorg, an error message popped up stating:



Media changed: please insert the disk labeled 'Debian GNU/Linux 7.4.0 _Wheezy_ - Official amd64 DVD Binary-1 20140208-13:47' in the drive and press Enter


I inserted the same USB flash drive into the same port and after waiting for a few seconds, I pressed Enter.



The same error message popped up.



I have tried the following steps on the advice of some of my colleagues:




  1. remove/delete all the entries in /etc/apt/sources.list and reboot the computer

  2. dmesg and fstab show that the USB thumb drive is mounted on /dev/sdb1

  3. sudo mount /dev/sdb1 /media/usb0

  4. sudo apt-cdrom -m -d /media/usb0 add


After doing the above, the following error message appears:



Using CD-ROM mount point /media/cdrom/
Identifying.......{a long string of alphanumeric characters}
Scanning disc for index files...............
Found 0 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
W: Failed to mount '/dev/sr0' to '/media/cdrom/'
E: Unable to locate any package files, perhaps this is not a Debian disc or the wrong architecture


I prefer to install Xorg (60MB) and gnome-core (400MB) from the USB stick. The NGO that I am working with is in a developing country with a very basic internet access infrastructure. Internet access is very patchy and the average download speed is less than 2 Mbps.










share|improve this question
















bumped to the homepage by Community 29 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    The apt-cdrom output says it is looking at /media/cdrom, change the command to sudo apt-cdrom -m -d=/media/usb0 add

    – fooot
    Apr 23 '14 at 16:27






  • 1





    When you change /etc/apt/sources.list, there is no need to reboot, but you must run sudo apt-get update. I'm not familiar with apt-cdrom, but I would assume that requires the same update afterwards. Also, if your internet connection is unreliable / slow, you might want to remove / comment out any online sources from /etc/apt/sources.list once you can install from local media, just so you don't have to wait for the update to contact the servers listed.

    – ssc
    Apr 24 '14 at 6:12
















11












11








11








I installed Debian 7 using a USB flash drive "burned" from the first DVD ISO of the Debian installation CD/DVD.



I did a very minimal install without Debian desktop environment, Print server and Standard system utilities.



After installation and a reboot, I was presented with a console with the words Debian GNU/Linux 7 hostname tty1. I supplied the login username and password.



After I typed the command sudo apt-get install xorg, an error message popped up stating:



Media changed: please insert the disk labeled 'Debian GNU/Linux 7.4.0 _Wheezy_ - Official amd64 DVD Binary-1 20140208-13:47' in the drive and press Enter


I inserted the same USB flash drive into the same port and after waiting for a few seconds, I pressed Enter.



The same error message popped up.



I have tried the following steps on the advice of some of my colleagues:




  1. remove/delete all the entries in /etc/apt/sources.list and reboot the computer

  2. dmesg and fstab show that the USB thumb drive is mounted on /dev/sdb1

  3. sudo mount /dev/sdb1 /media/usb0

  4. sudo apt-cdrom -m -d /media/usb0 add


After doing the above, the following error message appears:



Using CD-ROM mount point /media/cdrom/
Identifying.......{a long string of alphanumeric characters}
Scanning disc for index files...............
Found 0 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
W: Failed to mount '/dev/sr0' to '/media/cdrom/'
E: Unable to locate any package files, perhaps this is not a Debian disc or the wrong architecture


I prefer to install Xorg (60MB) and gnome-core (400MB) from the USB stick. The NGO that I am working with is in a developing country with a very basic internet access infrastructure. Internet access is very patchy and the average download speed is less than 2 Mbps.










share|improve this question
















I installed Debian 7 using a USB flash drive "burned" from the first DVD ISO of the Debian installation CD/DVD.



I did a very minimal install without Debian desktop environment, Print server and Standard system utilities.



After installation and a reboot, I was presented with a console with the words Debian GNU/Linux 7 hostname tty1. I supplied the login username and password.



After I typed the command sudo apt-get install xorg, an error message popped up stating:



Media changed: please insert the disk labeled 'Debian GNU/Linux 7.4.0 _Wheezy_ - Official amd64 DVD Binary-1 20140208-13:47' in the drive and press Enter


I inserted the same USB flash drive into the same port and after waiting for a few seconds, I pressed Enter.



The same error message popped up.



I have tried the following steps on the advice of some of my colleagues:




  1. remove/delete all the entries in /etc/apt/sources.list and reboot the computer

  2. dmesg and fstab show that the USB thumb drive is mounted on /dev/sdb1

  3. sudo mount /dev/sdb1 /media/usb0

  4. sudo apt-cdrom -m -d /media/usb0 add


After doing the above, the following error message appears:



Using CD-ROM mount point /media/cdrom/
Identifying.......{a long string of alphanumeric characters}
Scanning disc for index files...............
Found 0 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
W: Failed to mount '/dev/sr0' to '/media/cdrom/'
E: Unable to locate any package files, perhaps this is not a Debian disc or the wrong architecture


I prefer to install Xorg (60MB) and gnome-core (400MB) from the USB stick. The NGO that I am working with is in a developing country with a very basic internet access infrastructure. Internet access is very patchy and the average download speed is less than 2 Mbps.







debian usb media






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 14 '18 at 1:36









Patrick Mevzek

2,19111124




2,19111124










asked Apr 21 '14 at 17:49









user65787user65787

5514




5514





bumped to the homepage by Community 29 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 29 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1





    The apt-cdrom output says it is looking at /media/cdrom, change the command to sudo apt-cdrom -m -d=/media/usb0 add

    – fooot
    Apr 23 '14 at 16:27






  • 1





    When you change /etc/apt/sources.list, there is no need to reboot, but you must run sudo apt-get update. I'm not familiar with apt-cdrom, but I would assume that requires the same update afterwards. Also, if your internet connection is unreliable / slow, you might want to remove / comment out any online sources from /etc/apt/sources.list once you can install from local media, just so you don't have to wait for the update to contact the servers listed.

    – ssc
    Apr 24 '14 at 6:12
















  • 1





    The apt-cdrom output says it is looking at /media/cdrom, change the command to sudo apt-cdrom -m -d=/media/usb0 add

    – fooot
    Apr 23 '14 at 16:27






  • 1





    When you change /etc/apt/sources.list, there is no need to reboot, but you must run sudo apt-get update. I'm not familiar with apt-cdrom, but I would assume that requires the same update afterwards. Also, if your internet connection is unreliable / slow, you might want to remove / comment out any online sources from /etc/apt/sources.list once you can install from local media, just so you don't have to wait for the update to contact the servers listed.

    – ssc
    Apr 24 '14 at 6:12










1




1





The apt-cdrom output says it is looking at /media/cdrom, change the command to sudo apt-cdrom -m -d=/media/usb0 add

– fooot
Apr 23 '14 at 16:27





The apt-cdrom output says it is looking at /media/cdrom, change the command to sudo apt-cdrom -m -d=/media/usb0 add

– fooot
Apr 23 '14 at 16:27




1




1





When you change /etc/apt/sources.list, there is no need to reboot, but you must run sudo apt-get update. I'm not familiar with apt-cdrom, but I would assume that requires the same update afterwards. Also, if your internet connection is unreliable / slow, you might want to remove / comment out any online sources from /etc/apt/sources.list once you can install from local media, just so you don't have to wait for the update to contact the servers listed.

– ssc
Apr 24 '14 at 6:12







When you change /etc/apt/sources.list, there is no need to reboot, but you must run sudo apt-get update. I'm not familiar with apt-cdrom, but I would assume that requires the same update afterwards. Also, if your internet connection is unreliable / slow, you might want to remove / comment out any online sources from /etc/apt/sources.list once you can install from local media, just so you don't have to wait for the update to contact the servers listed.

– ssc
Apr 24 '14 at 6:12












2 Answers
2






active

oldest

votes


















0














I found that this problem was very similar to my own. Debian installed from USB stick but then when I try to use apt-get install I am prompted for a CdROM.

After much fuss I found part 14.3.1 of the Debian tutorial valuable because it explains the syntax for instructing the system to look for source content in a file location.
Here's what i did:



I ensured the usb stick was mounted and I took note of its location in the filesystem. For me that was /media/Debian 7.5 64 Copyleft FM



As su I edited sources.list so that the line with "deb cdrom" was commented-out.
Then I added a new first line of that file using the tutorial info and my usb stick file location:



deb file:/media/"Debian 7.5 64 Copyleft FM" wheezy contrib local main non-free
#deb cdrom:[Debian GNU/Linux 7.5 _Wheezy_ - Copyleft amd64 Full Monty amd64 DLBD Binary-1 20140427-09:14]/ wheezy contrib local main non-free


For newbies such as me, note the use of quotes in the URI to protect the enclosed spaces from being misunderstood. (See Nixcraft forum: Howto cd to folder name with spaces blank names (white space)



Then I ran sudo apt-get update as advised above (thx). That's all I did.



This solved my problem - I was able to run sudo apt-get install vim and I was no longer asked to insert a CD.






share|improve this answer


























  • How did you mount your USB stick?

    – user65787
    Jan 9 '15 at 1:52



















-2














so in line with the previous answer, I just told my system to not even bother to use the cdrom as a source for updates at all.



I first had to change the file permissions of sources.list so I could change it



change to directory it was in



    cd /etc/apt


then change permissions



    chmod 666 sources.list


(read/write for owner, root, and user)



then I could open the file in text editor, and with new basic user read and write permissions, and stuck # in front of the line looking at the cdrom as a source.



    #deb file:/media/"Debian 7.5 64 Copyleft FM" wheezy contrib local main non-free


then changed permissions back to only owner and root could write as well as read, but user could not



    chmod 664 sources.list


apt-get now installs programs.



someone might tell me later there is a problem with this, but hey. it worked :)






share|improve this answer





















  • 1





    The appropriate way to edit a file that you don't have write access to is to run the editor (i.e., vi, vim, emacs, pico, ed, teco, or whatever you use) under sudo, and not to chmod the file so it's world-writable and then chmod it back afterwards.  So, beyond that, I'm not clear what your answer is.  Are you saying that your /etc/apt/sources.list file already had a deb file:/media/... line in it?  And that, after commenting it out, apt-get now installs programs from the flash drive?  Are you sure it's not downloading from the Internet?

    – G-Man
    Jun 20 '15 at 13:59












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f125859%2fmedia-changed-please-insert-the-disk-labeled-debian-gnu-linux%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














I found that this problem was very similar to my own. Debian installed from USB stick but then when I try to use apt-get install I am prompted for a CdROM.

After much fuss I found part 14.3.1 of the Debian tutorial valuable because it explains the syntax for instructing the system to look for source content in a file location.
Here's what i did:



I ensured the usb stick was mounted and I took note of its location in the filesystem. For me that was /media/Debian 7.5 64 Copyleft FM



As su I edited sources.list so that the line with "deb cdrom" was commented-out.
Then I added a new first line of that file using the tutorial info and my usb stick file location:



deb file:/media/"Debian 7.5 64 Copyleft FM" wheezy contrib local main non-free
#deb cdrom:[Debian GNU/Linux 7.5 _Wheezy_ - Copyleft amd64 Full Monty amd64 DLBD Binary-1 20140427-09:14]/ wheezy contrib local main non-free


For newbies such as me, note the use of quotes in the URI to protect the enclosed spaces from being misunderstood. (See Nixcraft forum: Howto cd to folder name with spaces blank names (white space)



Then I ran sudo apt-get update as advised above (thx). That's all I did.



This solved my problem - I was able to run sudo apt-get install vim and I was no longer asked to insert a CD.






share|improve this answer


























  • How did you mount your USB stick?

    – user65787
    Jan 9 '15 at 1:52
















0














I found that this problem was very similar to my own. Debian installed from USB stick but then when I try to use apt-get install I am prompted for a CdROM.

After much fuss I found part 14.3.1 of the Debian tutorial valuable because it explains the syntax for instructing the system to look for source content in a file location.
Here's what i did:



I ensured the usb stick was mounted and I took note of its location in the filesystem. For me that was /media/Debian 7.5 64 Copyleft FM



As su I edited sources.list so that the line with "deb cdrom" was commented-out.
Then I added a new first line of that file using the tutorial info and my usb stick file location:



deb file:/media/"Debian 7.5 64 Copyleft FM" wheezy contrib local main non-free
#deb cdrom:[Debian GNU/Linux 7.5 _Wheezy_ - Copyleft amd64 Full Monty amd64 DLBD Binary-1 20140427-09:14]/ wheezy contrib local main non-free


For newbies such as me, note the use of quotes in the URI to protect the enclosed spaces from being misunderstood. (See Nixcraft forum: Howto cd to folder name with spaces blank names (white space)



Then I ran sudo apt-get update as advised above (thx). That's all I did.



This solved my problem - I was able to run sudo apt-get install vim and I was no longer asked to insert a CD.






share|improve this answer


























  • How did you mount your USB stick?

    – user65787
    Jan 9 '15 at 1:52














0












0








0







I found that this problem was very similar to my own. Debian installed from USB stick but then when I try to use apt-get install I am prompted for a CdROM.

After much fuss I found part 14.3.1 of the Debian tutorial valuable because it explains the syntax for instructing the system to look for source content in a file location.
Here's what i did:



I ensured the usb stick was mounted and I took note of its location in the filesystem. For me that was /media/Debian 7.5 64 Copyleft FM



As su I edited sources.list so that the line with "deb cdrom" was commented-out.
Then I added a new first line of that file using the tutorial info and my usb stick file location:



deb file:/media/"Debian 7.5 64 Copyleft FM" wheezy contrib local main non-free
#deb cdrom:[Debian GNU/Linux 7.5 _Wheezy_ - Copyleft amd64 Full Monty amd64 DLBD Binary-1 20140427-09:14]/ wheezy contrib local main non-free


For newbies such as me, note the use of quotes in the URI to protect the enclosed spaces from being misunderstood. (See Nixcraft forum: Howto cd to folder name with spaces blank names (white space)



Then I ran sudo apt-get update as advised above (thx). That's all I did.



This solved my problem - I was able to run sudo apt-get install vim and I was no longer asked to insert a CD.






share|improve this answer















I found that this problem was very similar to my own. Debian installed from USB stick but then when I try to use apt-get install I am prompted for a CdROM.

After much fuss I found part 14.3.1 of the Debian tutorial valuable because it explains the syntax for instructing the system to look for source content in a file location.
Here's what i did:



I ensured the usb stick was mounted and I took note of its location in the filesystem. For me that was /media/Debian 7.5 64 Copyleft FM



As su I edited sources.list so that the line with "deb cdrom" was commented-out.
Then I added a new first line of that file using the tutorial info and my usb stick file location:



deb file:/media/"Debian 7.5 64 Copyleft FM" wheezy contrib local main non-free
#deb cdrom:[Debian GNU/Linux 7.5 _Wheezy_ - Copyleft amd64 Full Monty amd64 DLBD Binary-1 20140427-09:14]/ wheezy contrib local main non-free


For newbies such as me, note the use of quotes in the URI to protect the enclosed spaces from being misunderstood. (See Nixcraft forum: Howto cd to folder name with spaces blank names (white space)



Then I ran sudo apt-get update as advised above (thx). That's all I did.



This solved my problem - I was able to run sudo apt-get install vim and I was no longer asked to insert a CD.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 4 '14 at 3:52

























answered Dec 4 '14 at 3:30









owenmckowenmck

1012




1012













  • How did you mount your USB stick?

    – user65787
    Jan 9 '15 at 1:52



















  • How did you mount your USB stick?

    – user65787
    Jan 9 '15 at 1:52

















How did you mount your USB stick?

– user65787
Jan 9 '15 at 1:52





How did you mount your USB stick?

– user65787
Jan 9 '15 at 1:52













-2














so in line with the previous answer, I just told my system to not even bother to use the cdrom as a source for updates at all.



I first had to change the file permissions of sources.list so I could change it



change to directory it was in



    cd /etc/apt


then change permissions



    chmod 666 sources.list


(read/write for owner, root, and user)



then I could open the file in text editor, and with new basic user read and write permissions, and stuck # in front of the line looking at the cdrom as a source.



    #deb file:/media/"Debian 7.5 64 Copyleft FM" wheezy contrib local main non-free


then changed permissions back to only owner and root could write as well as read, but user could not



    chmod 664 sources.list


apt-get now installs programs.



someone might tell me later there is a problem with this, but hey. it worked :)






share|improve this answer





















  • 1





    The appropriate way to edit a file that you don't have write access to is to run the editor (i.e., vi, vim, emacs, pico, ed, teco, or whatever you use) under sudo, and not to chmod the file so it's world-writable and then chmod it back afterwards.  So, beyond that, I'm not clear what your answer is.  Are you saying that your /etc/apt/sources.list file already had a deb file:/media/... line in it?  And that, after commenting it out, apt-get now installs programs from the flash drive?  Are you sure it's not downloading from the Internet?

    – G-Man
    Jun 20 '15 at 13:59
















-2














so in line with the previous answer, I just told my system to not even bother to use the cdrom as a source for updates at all.



I first had to change the file permissions of sources.list so I could change it



change to directory it was in



    cd /etc/apt


then change permissions



    chmod 666 sources.list


(read/write for owner, root, and user)



then I could open the file in text editor, and with new basic user read and write permissions, and stuck # in front of the line looking at the cdrom as a source.



    #deb file:/media/"Debian 7.5 64 Copyleft FM" wheezy contrib local main non-free


then changed permissions back to only owner and root could write as well as read, but user could not



    chmod 664 sources.list


apt-get now installs programs.



someone might tell me later there is a problem with this, but hey. it worked :)






share|improve this answer





















  • 1





    The appropriate way to edit a file that you don't have write access to is to run the editor (i.e., vi, vim, emacs, pico, ed, teco, or whatever you use) under sudo, and not to chmod the file so it's world-writable and then chmod it back afterwards.  So, beyond that, I'm not clear what your answer is.  Are you saying that your /etc/apt/sources.list file already had a deb file:/media/... line in it?  And that, after commenting it out, apt-get now installs programs from the flash drive?  Are you sure it's not downloading from the Internet?

    – G-Man
    Jun 20 '15 at 13:59














-2












-2








-2







so in line with the previous answer, I just told my system to not even bother to use the cdrom as a source for updates at all.



I first had to change the file permissions of sources.list so I could change it



change to directory it was in



    cd /etc/apt


then change permissions



    chmod 666 sources.list


(read/write for owner, root, and user)



then I could open the file in text editor, and with new basic user read and write permissions, and stuck # in front of the line looking at the cdrom as a source.



    #deb file:/media/"Debian 7.5 64 Copyleft FM" wheezy contrib local main non-free


then changed permissions back to only owner and root could write as well as read, but user could not



    chmod 664 sources.list


apt-get now installs programs.



someone might tell me later there is a problem with this, but hey. it worked :)






share|improve this answer















so in line with the previous answer, I just told my system to not even bother to use the cdrom as a source for updates at all.



I first had to change the file permissions of sources.list so I could change it



change to directory it was in



    cd /etc/apt


then change permissions



    chmod 666 sources.list


(read/write for owner, root, and user)



then I could open the file in text editor, and with new basic user read and write permissions, and stuck # in front of the line looking at the cdrom as a source.



    #deb file:/media/"Debian 7.5 64 Copyleft FM" wheezy contrib local main non-free


then changed permissions back to only owner and root could write as well as read, but user could not



    chmod 664 sources.list


apt-get now installs programs.



someone might tell me later there is a problem with this, but hey. it worked :)







share|improve this answer














share|improve this answer



share|improve this answer








edited Jun 20 '15 at 12:28

























answered Jun 20 '15 at 12:20









bobbob

11




11








  • 1





    The appropriate way to edit a file that you don't have write access to is to run the editor (i.e., vi, vim, emacs, pico, ed, teco, or whatever you use) under sudo, and not to chmod the file so it's world-writable and then chmod it back afterwards.  So, beyond that, I'm not clear what your answer is.  Are you saying that your /etc/apt/sources.list file already had a deb file:/media/... line in it?  And that, after commenting it out, apt-get now installs programs from the flash drive?  Are you sure it's not downloading from the Internet?

    – G-Man
    Jun 20 '15 at 13:59














  • 1





    The appropriate way to edit a file that you don't have write access to is to run the editor (i.e., vi, vim, emacs, pico, ed, teco, or whatever you use) under sudo, and not to chmod the file so it's world-writable and then chmod it back afterwards.  So, beyond that, I'm not clear what your answer is.  Are you saying that your /etc/apt/sources.list file already had a deb file:/media/... line in it?  And that, after commenting it out, apt-get now installs programs from the flash drive?  Are you sure it's not downloading from the Internet?

    – G-Man
    Jun 20 '15 at 13:59








1




1





The appropriate way to edit a file that you don't have write access to is to run the editor (i.e., vi, vim, emacs, pico, ed, teco, or whatever you use) under sudo, and not to chmod the file so it's world-writable and then chmod it back afterwards.  So, beyond that, I'm not clear what your answer is.  Are you saying that your /etc/apt/sources.list file already had a deb file:/media/... line in it?  And that, after commenting it out, apt-get now installs programs from the flash drive?  Are you sure it's not downloading from the Internet?

– G-Man
Jun 20 '15 at 13:59





The appropriate way to edit a file that you don't have write access to is to run the editor (i.e., vi, vim, emacs, pico, ed, teco, or whatever you use) under sudo, and not to chmod the file so it's world-writable and then chmod it back afterwards.  So, beyond that, I'm not clear what your answer is.  Are you saying that your /etc/apt/sources.list file already had a deb file:/media/... line in it?  And that, after commenting it out, apt-get now installs programs from the flash drive?  Are you sure it's not downloading from the Internet?

– G-Man
Jun 20 '15 at 13:59


















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f125859%2fmedia-changed-please-insert-the-disk-labeled-debian-gnu-linux%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m