problem with synaptic package manager SOLVED

New to Debian (Or Linux in general)? Ask your questions here!

problem with synaptic package manager SOLVED

Postby mehdi4970 » 2018-09-25 20:56

hello!
at first pardon me for my weak english..........
i installed Debian 9.5.0 on my laptop.... by dvd1 downloaded Debian'site.... but at first it installed on my flash bootable ....
then when i install package at synaptic package manager say insert dvd1.......
why???????? what i doing with problem????
Last edited by mehdi4970 on 2018-09-28 19:40, edited 3 times in total.
mehdi4970
 
Posts: 14
Joined: 2018-09-25 20:34

Re: problem whit synaptic package manager

Postby arochester » 2018-09-25 21:00

Because you have the DVD listed as a Repository in your sources list.

What does your sources list say?
arochester
 
Posts: 1348
Joined: 2010-12-07 19:55

Re: problem whit synaptic package manager

Postby mehdi4970 » 2018-09-25 21:06

thank you
that say insert dvd1 but it writed in my flash bootable........
but how i insert usb in list source....
what i doing that synaptic package manager install programs with my flash bootable ....
my flash bootable have Debian 9.5.0 of dvd1 ......
mehdi4970
 
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

Postby Dai_trying » 2018-09-25 22:55

You need to edit your /etc/apt/sources.list file and comment out or remove the line(s) that refer to your DVD, after you have done this save it and run apt update (as root or with sudo) and you should then be able to install packages from the normal repositories (provided you have them entered in your sources.list file).
If you do not have the correct entries in your sources.list file you can check the Debian Wiki as it has some examples for you.
Dai_trying
 
Posts: 567
Joined: 2016-01-07 12:25

Re: problem with synaptic package manager

Postby mehdi4970 » 2018-09-26 06:42

thank you very much......
but i don't know what write in my list source that synaptic reads my address' flash.....
i don't know what write at it ......
my problem this is.......
[img]file:///home/a/Desktop/Screenshot_2018-09-26_11-02-03.png
[/img]
mehdi4970
 
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

Postby None1975 » 2018-09-26 13:45

mehdi4970 wrote:but i don't know what write in my list source that synaptic reads my address' flash.....
i don't know what write at it ......

Here is an excerpt from Debian wiki
Below is an example of a sources.list for Debian 9/Stretch.

Code: Select all
deb http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian stretch main

deb http://deb.debian.org/debian-security/ stretch/updates main
deb-src http://deb.debian.org/debian-security/ stretch/updates main

deb http://deb.debian.org/debian stretch-updates main
deb-src http://deb.debian.org/debian stretch-updates main


As root, open file
Code: Select all
/etc/apt/sources.list
with your favorite text editor and copy this example. Then as root run
Code: Select all
apt update
Good luck.
User avatar
None1975
 
Posts: 699
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: problem with synaptic package manager

Postby mehdi4970 » 2018-09-26 15:36

thank you very much....
i do it that works you told me but negative.......
let me explain better:
1- i download dvd1 debian 9.5.0.....
2- i write that iso on me flash with this command (‫‪ls‬‬ ‫‪-l‬‬ ‫‪/dev/disk/by-id/*usb‬‬)
3- i install Debian 9.5.0 with my usb
4- in synapyic package manager when i will install program ... told me : insert dvd 1....but dvd1 writed in my usb
5- i know that i can write that iso on one dvd writable but usb is faster...
6- pardon me ..... exactly... i must what address in my repository in setting==repositories==other software==add==apt
7- this is my sources.list :
#

# deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 DVD Binary-1 20180714-10:25]/ stretch contrib main

deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 DVD Binary-1 20180714-10:25]/ stretch contrib main

# Line commented out by installer because it failed to verify:
# deb http://security.debian.org/debian-security stretch/updates main contrib
# Line commented out by installer because it failed to verify:
# deb-src http://security.debian.org/debian-security stretch/updates main contrib

# stretch-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://deb.debian.org/debian/ stretch-updates main contrib
# deb-src http://deb.debian.org/debian/ stretch main
# deb-src http://deb.debian.org/debian/ stretch-updates main contrib

8- i erase # for commands be free in lines but negative too.....

thank you very much
mehdi4970
 
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

Postby fred44nl » 2018-09-26 16:14

the reason you are asked for the CD is this line:
deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 DVD Binary-1 20180714-10:25]/ stretch contrib main

this is the only line without # in front.

change your /etc/apt/sources.list to:
Code: Select all
deb http://deb.debian.org/debian stretch main contrib non-free

deb http://deb.debian.org/debian-security/ stretch/updates main contrib non-free

deb http://deb.debian.org/debian stretch-updates main contrib non-free


run this in terminal afterwards:
Code: Select all
sudo apt-get update
Debian 9.6 on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 87
Joined: 2018-07-14 08:54

Re: problem with synaptic package manager

Postby mehdi4970 » 2018-09-26 19:22

thank you my friend
but with this lines that you told me there isn't nothing for install....
sorry..... this way is negative
and then command: apt update======> terminal told me:
Err:1 http://deb.debian.org/debian stretch InRelease
Could not resolve 'deb.debian.org'
Err:2 http://deb.debian.org/debian-security stretch/updates InRelease
Could not resolve 'deb.debian.org'
Err:3 http://deb.debian.org/debian stretch-updates InRelease
Could not resolve 'deb.debian.org'
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Could not resolve 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian-security/d ... /InRelease Could not resolve 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/stre ... /InRelease Could not resolve 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

thank you very much
mehdi4970
 
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

Postby Dai_trying » 2018-09-26 21:43

You need to have an internet connection.
Dai_trying
 
Posts: 567
Joined: 2016-01-07 12:25

Re: problem with synaptic package manager

Postby mehdi4970 » 2018-09-27 07:26

thank you very much my friend....
you ok and its work but it is only for update by net....
i want only install few package of my flash bootable only offline and only only only on my flash no dvd and no net
thank you very much
mehdi4970
 
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

Postby Dai_trying » 2018-09-27 07:36

In that case you could edit your sources list and put the dvd line back in (or un-comment it) and comment out the online repositories, leaving just this...

Code: Select all
deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 DVD Binary-1 20180714-10:25]/ stretch contrib main

and then when synaptics package manager (or apt/aptitude etc) ask for DVD you can simply insert your flash drive (USB stick) and it should read from it.
Just a note though that you will be limited to packages that are contained in that particular DVD and so will not have access to a lot of what Debian has to offer.
Dai_trying
 
Posts: 567
Joined: 2016-01-07 12:25

Re: problem with synaptic package manager

Postby fred44nl » 2018-09-27 08:04

mehdi4970 wrote:thank you very much my friend....
you ok and its work but it is only for update by net....
i want only install few package of my flash bootable only offline and only only only on my flash no dvd and no net
thank you very much


do you think, you will get all available packages installed, when you change /etc/apt/sources.list as suggested ??
this is not so, you will only download a list of what is available.
from that list you can choose to install only the packages you want.
Debian 9.6 on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 87
Joined: 2018-07-14 08:54

Re: problem with synaptic package manager

Postby mehdi4970 » 2018-09-27 08:49

dear Dai_trying ....
your solution isn't work....

dear fred44nl.......
by download dvd 1&2&3 debian we can have all package for install
by download only dvd 1 ,too......

but my problem is that synaptic for install package goes to dvd1 or net..... i want synaptic go to me flash ( bootable usb )...

thank you very much
mehdi4970
 
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

Postby Dai_trying » 2018-09-27 12:30

mehdi4970 wrote:dear Dai_trying ....
your solution isn't work....


Did you perform apt update (as root) after changing your sources.lst? You could also click reload from the synaptic GUI to perform this function.

mehdi4970 wrote:but my problem is that synaptic for install package goes to dvd1 or net..... i want synaptic go to me flash ( bootable usb )...


If you go to settings->repositories it should tell you the available repositories, you should only have the DVD ticked and if there are more then remove the tick from the box next to it then click OK and then click on reload from the synaptic GUI.

This should allow you to install from the DVD image on your USB device but as has already been said it will not hold all the packages you may want.

To add the other DVD images use synaptics -> Edit -> Add CD-ROM
Dai_trying
 
Posts: 567
Joined: 2016-01-07 12:25

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable