Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #190680 > unrolled thread
| Started by | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| First post | 2018-01-05 16:50 +0100 |
| Last post | 2018-01-05 20:20 +0100 |
| Articles | 8 — 5 participants |
Back to article view | Back to linux.debian.user
Synaptic problem - physical access to CD drive related Richard Owlett <rowlett@cloud85.net> - 2018-01-05 16:50 +0100
Re: Synaptic problem - physical access to CD drive related "Thomas Schmitt" <scdbackup@gmx.net> - 2018-01-05 17:00 +0100
Re: Synaptic problem - physical access to CD drive related Richard Owlett <rowlett@cloud85.net> - 2018-01-05 17:20 +0100
Re: Synaptic problem - physical access to CD drive related bw <bwtnguy@yahoo.com> - 2018-01-05 17:30 +0100
Re: Synaptic problem - physical access to CD drive related Richard Owlett <rowlett@cloud85.net> - 2018-01-05 18:30 +0100
Re: Synaptic problem - physical access to CD drive related <tomas@tuxteam.de> - 2018-01-05 17:30 +0100
Re: Synaptic problem - physical access to CD drive related "Thomas Schmitt" <scdbackup@gmx.net> - 2018-01-05 18:50 +0100
Re: Synaptic problem - physical access to CD drive related Felix Miata <mrmazda@earthlink.net> - 2018-01-05 20:20 +0100
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2018-01-05 16:50 +0100 |
| Subject | Synaptic problem - physical access to CD drive related |
| Message-ID | <v4CpQ-5CO-7@gated-at.bofh.it> |
I have 3 machines with differing problems physically accessing the
CD/DVD drive. To install Debian I routinely use a USB connected drive
WITHOUT any problem by using the BIOS option to select a boot device.
The SOURCES.LIST(5) man page hints that I should be able us something like
file:/media/richard/Debian%209.1.0%20i386%201
or
file:/media/richard/Debian 9.1.0 i386 1
Neither worked. Man page suggest the space characters to be the problem.
I did
> root@stretch17oct2017:/home/richard# findmnt
> TARGET SOURCE FSTYPE OPTIONS
> / /dev/sda9 ext4 rw,relatime,errors=rem
.
.
.> └─/media/richard/Debian 9.1.0 i386 1 /dev/sr1 iso9660
ro,nosuid,nodev,relati
> root@stretch17oct2017:/home/richard# mount /dev/sr1 /home/richard/Desktop/testcd
> mount: /dev/sr1 is write-protected, mounting read-only
> root@stretch17oct2017:/home/richard#
When I run Synaptic, it complains about a line in sources.list
file:/home/richard/Desktop/testdvd stretch main contrib non-free
The error message is
> E: Type 'file:/home/richard/Desktop/testdvd' is not known on line 2 in source list /etc/apt/sources.list
> E: The list of sources could not be read.
> Go to the repository dialog to correct the problem.
> E: _cache->open() failed, please report.
>
What can I do?
TIA
[toc] | [next] | [standalone]
| From | "Thomas Schmitt" <scdbackup@gmx.net> |
|---|---|
| Date | 2018-01-05 17:00 +0100 |
| Message-ID | <v4Czv-5FU-7@gated-at.bofh.it> |
| In reply to | #190680 |
Hi, Richard Owlett wrote: > root@stretch17oct2017:/home/richard# mount /dev/sr1 /home/richard/Desktop/testcd > ... > > E: Type 'file:/home/richard/Desktop/testdvd' is not known on line 2 in "testcd" is not the same as "testdvd". (Copy+paste error or the cause of your problem ?) Have a nice day :) Thomas
[toc] | [prev] | [next] | [standalone]
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2018-01-05 17:20 +0100 |
| Message-ID | <v4CSS-63H-17@gated-at.bofh.it> |
| In reply to | #190682 |
On 01/05/2018 09:55 AM, Thomas Schmitt wrote: > Hi, > > Richard Owlett wrote: >> root@stretch17oct2017:/home/richard# mount /dev/sr1 /home/richard/Desktop/testcd >> ... >>> E: Type 'file:/home/richard/Desktop/testdvd' is not known on line 2 in > > "testcd" is not the same as "testdvd". > (Copy+paste error or the cause of your problem ?) > Now findmnt returns ├─/media/richard/Debian 9.1.0 i386 1 /dev/sr1 iso9660 ro,nosuid,nodev,relatime,uid=1000,gid=1000, ├─/home/richard/Desktop/testcd /dev/sr1 iso9660 ro,relatime,uid=1000,gid=1000,iocharset=utf └─/home/richard/Desktop/testdvd /dev/sr1 iso9660 ro,relatime,uid=1000,gid=1000,iocharset=utf I had tried "umount /media/richard/Debian 9.1.0 i386 1", but umount objected to the spaces in the file name. Synaptic still returns E: Type 'file:/home/richard/Desktop/testdvd' is not known on line 2 in source list /etc/apt/sources.list E: The list of sources could not be read. Go to the repository dialog to correct the problem. E: _cache->open() failed, please report. Is the problem that the dvd is automounted at boot? Thank you
[toc] | [prev] | [next] | [standalone]
| From | bw <bwtnguy@yahoo.com> |
|---|---|
| Date | 2018-01-05 17:30 +0100 |
| Message-ID | <v4D2x-66M-3@gated-at.bofh.it> |
| In reply to | #190684 |
On Fri, 5 Jan 2018, Richard Owlett wrote: > Synaptic still returns > > E: Type 'file:/home/richard/Desktop/testdvd' is not known on line 2 in source > list /etc/apt/sources.list "Type" is probably referring to the deb or deb-src entry that is missing. Have you already used the repository to update your sources? why do you want to add the cd/dvd back? I have found that immediately after install, a commented line in sources.list resembling: #deb cdrom:[debian_installer_version_arch_24-date_etc] stretch main and if I uncomment this line, and mount the install media at /media/cdrom then apt is able to continue installing pkgs from it. If that won;t work for you, try apt-cdrom good luck
[toc] | [prev] | [next] | [standalone]
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2018-01-05 18:30 +0100 |
| Message-ID | <v4DYC-6Gy-15@gated-at.bofh.it> |
| In reply to | #190685 |
On 01/05/2018 10:28 AM, bw wrote: > > > On Fri, 5 Jan 2018, Richard Owlett wrote: > >> Synaptic still returns >> >> E: Type 'file:/home/richard/Desktop/testdvd' is not known on line 2 in source >> list /etc/apt/sources.list > > > "Type" is probably referring to the deb or deb-src entry that is missing. I've been staring at screen too long. That at least allows Synaptic to start. As CD's are not "signed" so to speak I still can't access it. But I had a closely related problem in April 2014. I have to reread that thread to become re-educated ;/ > > Have you already used the repository to update your sources? why do you > want to add the cd/dvd back? Because I don't always have internet and there are physical/mechanical problems using the installed drive. The portable drive is convenient and sometimes required. > > I have found that immediately after install, a commented line > in sources.list resembling: > #deb cdrom:[debian_installer_version_arch_24-date_etc] stretch main > > and if I uncomment this line, and mount the install media at /media/cdrom > then apt is able to continue installing pkgs from it. > > If that won;t work for you, try apt-cdrom I'll check that out tomorrow. Thanks > > good luck > >
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2018-01-05 17:30 +0100 |
| Message-ID | <v4D2x-66M-11@gated-at.bofh.it> |
| In reply to | #190684 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Jan 05, 2018 at 10:15:45AM -0600, Richard Owlett wrote: > On 01/05/2018 09:55 AM, Thomas Schmitt wrote: > >Hi, > > > >Richard Owlett wrote: > >>root@stretch17oct2017:/home/richard# mount /dev/sr1 /home/richard/Desktop/testcd > >>... > >>>E: Type 'file:/home/richard/Desktop/testdvd' is not known on line 2 in > > > >"testcd" is not the same as "testdvd". > >(Copy+paste error or the cause of your problem ?) > > > > > Now findmnt returns > ├─/media/richard/Debian 9.1.0 i386 1 /dev/sr1 iso9660 > ro,nosuid,nodev,relatime,uid=1000,gid=1000, > ├─/home/richard/Desktop/testcd /dev/sr1 iso9660 > ro,relatime,uid=1000,gid=1000,iocharset=utf > └─/home/richard/Desktop/testdvd /dev/sr1 iso9660 > ro,relatime,uid=1000,gid=1000,iocharset=utf > > I had tried "umount /media/richard/Debian 9.1.0 i386 1", but umount > objected to the spaces in the file name. I don't know about Synaptics, but for the command line you have to put a file name in quotes whenever it contains spaces (this is due to the shell separating arguments (by default) at whitespace: umount sees four arguments then: "/media/richard/Debian", "9.1.0", "i386" and "1". None of those are a mount point or device (lucky you ;), thus umount complains). Regards - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlpPp9wACgkQBcgs9XrR2kbBWQCcDLa+ZEXeo9mhdFMa2SrUMjtn YNwAn3qimJVHKfuHM4JZ8yYMEaoM8YDk =WOSs -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | "Thomas Schmitt" <scdbackup@gmx.net> |
|---|---|
| Date | 2018-01-05 18:50 +0100 |
| Message-ID | <v4EhY-6Oj-7@gated-at.bofh.it> |
| In reply to | #190686 |
Hi,
Richard Owlett wrote:
> I had tried "umount /media/richard/Debian 9.1.0 i386 1", but umount objected
> to the spaces in the file name.
Use quotation marks to make the directory path a single "word"
umount "/media/richard/Debian 9.1.0 i386 1"
(It is somewhat astounding that you can mount /dev/sr1 several times.
On ye olde Jessie kernel i have to use "-o loop" for the further mounts.)
> > > When I run Synaptic, it complains about a line in sources.list
> > > file:/home/richard/Desktop/testdvd stretch main contrib non-free
In my /etc/apt/sources.list there is the word "deb" or "deb-src" before
the URL. man 5 source.list says:
The format for a sources.list entry using the deb and deb-src types is:
deb [ options ] uri suite [component1] [component2] [...]
This matches the complaint about "Type 'file:...'".
So if you don't have it yet in the file, then try prepending "deb"
deb file:/home/richard/Desktop/testdvd stretch main contrib non-free
Have a nice day :)
Thomas
[toc] | [prev] | [next] | [standalone]
| From | Felix Miata <mrmazda@earthlink.net> |
|---|---|
| Date | 2018-01-05 20:20 +0100 |
| Message-ID | <v4FH3-7Ml-1@gated-at.bofh.it> |
| In reply to | #190680 |
Richard Owlett composed on 2018-01-05 09:44 (UTC-0600): > I have 3 machines with differing problems physically accessing the > CD/DVD drive. To install Debian I routinely use a USB connected drive > WITHOUT any problem by using the BIOS option to select a boot device. > The SOURCES.LIST(5) man page hints that I should be able us something like > file:/media/richard/Debian%209.1.0%20i386%201 > or > file:/media/richard/Debian 9.1.0 i386 1 > Neither worked. Man page suggest the space characters to be the problem. So eliminate the problem. Whitespace characters (& dots & underscores) in filenames produce more trouble than they avoid. It doesn't happen with downloads on my machines. e.g., that above would be: file:/media/richard/debian09010-i386-1 and next, likely file:/media/richard/debian09020-i386-1 and eventually, likely file:/media/richard/debian10010-i386-1 cf. my archive of mozilla.org Firefox downloads: -rw-rw-r-- 1 18999452 Jan 3 2013 firefox-10012esr64.tar.bz2 -rw-rw-r-- 1 23590858 Nov 13 2013 firefox-17011esr64.tar.bz2 -rw-rw-r-- 1 38882500 Sep 24 2014 firefox-3111esr64.tar.bz2 -rw-rw-r-- 1 46359449 Apr 26 2016 firefox-3880esr64.tar.bz2 -rw-rw-r-- 1 51807116 Apr 18 2017 firefox-4590esr64.tar.bz2 -rw-rw-r-- 1 57712454 Dec 7 10:26 firefox-5252esr64.tar.bz2 -rw-rw-r-- 1 57692607 Dec 27 10:47 firefox-5253esr64.tar.bz2 ls -gG produces same result as ls -gGrt :-) With any luck the Rapture will occur before Firefox versions reach triple digits. ;-) Dots and underscores in filenames do little more than make filenames longer and harder to touch type, but commonly also cause alphabetical sorts to undesirably differ from age/version sorts[1]. Here, Shift-F6 in OFM fixes any created by other than myself. [1] e.g. http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/ http://snapshot.debian.org/archive/debian/20100701T034005Z/pool/main/x/xserver-xorg-video-intel/ $ ls -gG *nel-def*64* -rw-rw-r-- 1 58886019 May 3 2017 kernel-default-4.10.13-1.2.x86_64.rpm -rw-rw-r-- 1 58571199 Aug 13 13:27 kernel-default-4.11.8-2.4.x86_64.rpm -rw-rw-r-- 1 58047527 Feb 21 2017 kernel-default-4.9.11-1.2.x86_64.rpm vs. $ ls -gGrt *nel-def*64* -rw-rw-r-- 1 58047527 Feb 21 2017 kernel-default-4.9.11-1.2.x86_64.rpm -rw-rw-r-- 1 58886019 May 3 2017 kernel-default-4.10.13-1.2.x86_64.rpm -rw-rw-r-- 1 58571199 Aug 13 13:27 kernel-default-4.11.8-2.4.x86_64.rpm -- "Wisdom is supreme; therefore get wisdom. Whatever else you get, get wisdom." Proverbs 4:7 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web