Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

problem with synaptic package manager SOLVED

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
mehdi4970
Posts: 14
Joined: 2018-09-25 20:34

problem with synaptic package manager SOLVED

#1 Post by mehdi4970 »

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.

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: problem whit synaptic package manager

#2 Post by arochester »

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

What does your sources list say?

mehdi4970
Posts: 14
Joined: 2018-09-25 20:34

Re: problem whit synaptic package manager

#3 Post by mehdi4970 »

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 ......

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: problem with synaptic package manager

#4 Post by Dai_trying »

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.

mehdi4970
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

#5 Post by mehdi4970 »

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]

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1388
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 65 times

Re: problem with synaptic package manager

#6 Post by None1975 »

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.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

mehdi4970
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

#7 Post by mehdi4970 »

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

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: problem with synaptic package manager

#8 Post by fred44nl »

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 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

mehdi4970
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

#9 Post by mehdi4970 »

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

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: problem with synaptic package manager

#10 Post by Dai_trying »

You need to have an internet connection.

mehdi4970
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

#11 Post by mehdi4970 »

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

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: problem with synaptic package manager

#12 Post by Dai_trying »

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.

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: problem with synaptic package manager

#13 Post by fred44nl »

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 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

mehdi4970
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

#14 Post by mehdi4970 »

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

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: problem with synaptic package manager

#15 Post by Dai_trying »

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

mehdi4970
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

#16 Post by mehdi4970 »

dear friend
yes i do it works.....but add cd-rom======>not work (no exept usb)

thank you very much

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: problem with synaptic package manager

#17 Post by Dai_trying »

Sorry I hadn't used the add-cdrom option in a long time and forgot it was just for physical cd-rom/dvd media, it is possible to either
1.) add the images by mounting them as loop devices (in fstab) and then adding them on the command line (man apt-cdrom will give you best guide)
or
2.) add them from their usb stick to fstab, but that would mean they need to be physically plugged in to the machine and so would likely not be the desired effect.

mehdi4970
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

#18 Post by mehdi4970 »

thank you very much.....
however i must write ISO dvd1 Debian into DVD for now.....

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: problem with synaptic package manager

#19 Post by Dai_trying »

If you write all the images to a DVD disc then you should be able to use the add-cdrom option in synaptic, but if it fails for some reason check the settings, I seem to recall being able to set the cdrom drive (may need to set it to sr0 for DVD but not sure).

mehdi4970
Posts: 14
Joined: 2018-09-25 20:34

Re: problem with synaptic package manager

#20 Post by mehdi4970 »

thank yyou veryy very much....
my probblem solved for now...

thank you

Post Reply