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

 

 

 

Unable to install software

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
arg22
Posts: 10
Joined: 2018-05-01 10:51

Unable to install software

#1 Post by arg22 »

Hi everyone im new to the forum and a new debian user as well. yesterday i installed debian 9.4 non free iso on my hp laptop. luckily sorted the wifi firmware missing installing it from usb at the beginning. I ve updated the sources but still not able to install practically any software like python pip or chrome, keep getting same error as i try to install anything:

sudo apt-get install python-pip
Reading list of packages ... Done
Creating dependency tree
Reading the status information ... Done
E: The python-pip package could not be located

Im listing my sources:
deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free
#security
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free
# stretch-updates, previously known as 'volatile'
deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security/ stretch/updates main contrib non-free
#debian multimedia
deb http://www.deb-multimedia.org stretch main contrib non-free

Thanks in advance

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: Unable to install software

#2 Post by None1975 »

Did you update your source list?

Code: Select all

sudo apt update
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

arg22
Posts: 10
Joined: 2018-05-01 10:51

Re: Unable to install software

#3 Post by arg22 »

sorry i did not specify that, yes i did update. I made a good search about the problem but all references point to sources problems, so i checked the debian wiki and sources look ok.

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

Re: Unable to install software

#4 Post by arochester »

If you click on the blue links above you will find that the ones for the main repositories and security do not work.

So they are wrong.

What country are you in?

arg22
Posts: 10
Joined: 2018-05-01 10:51

Re: Unable to install software

#5 Post by arg22 »

argentina, so you suggest to change the repos to a local one? how can i lookup for one like that?

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

Re: Unable to install software

#6 Post by arochester »

https://www.debian.org/mirror/list

Also, although some people do not like it, and it does not specifically mention Argentina https://debgen.simplylinux.ch/

arg22
Posts: 10
Joined: 2018-05-01 10:51

Re: Unable to install software

#7 Post by arg22 »

so i tried changing the repo to a working one
deb http://ftp.cl.debian.org/debian/ main contrib non-free
deb-src http://ftp.cl.debian.org/debian/ main contrib non-free
#security
deb http://security.debian.org/debian-security/ stretch/updates main contrib no$
deb-src http://security.debian.org/debian-security/ stretch/updates main contri$
#stretch updates
#debian multimedia
deb http://www.deb-multimedia.org stretch main contrib non-free
still the same error (sudo apt update alredy)

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

Re: Unable to install software

#8 Post by arochester »

Having changed your sources list have you updated again?

arg22
Posts: 10
Joined: 2018-05-01 10:51

Re: Unable to install software

#9 Post by arg22 »

yes sir i did. sudo apt update

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: Unable to install software

#10 Post by sunrat »

arg22 wrote:yes sir i did. sudo apt update
Post what messages showed in the terminal when you did this.
python-pip should be installable. Chrome is not in the repository so you need to download it from a website to install it. You could try Chromium instead which is in the repo.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

arg22
Posts: 10
Joined: 2018-05-01 10:51

Re: Unable to install software

#11 Post by arg22 »

sudo apt update
Reading list of packages ... Done
Creating dependency tree
Reading the status information ... Done
All packages are updated.

sudo apt install -y chromium
Reading list of packages ... Done
Creating dependency tree
Reading the status information ... Done
E: The chromium package could not be located

sudo apt install python-pip
Reading list of packages ... Done
Creating dependency tree
Reading the status information ... Done
E: The python-pip package could not be located

# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1 201$
#deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1 2018$
deb http://ftp.cl.debian.org/debian/ main contrib non-free
deb-src http://ftp.cl.debian.org/debian/ main contrib non-free
#security
deb http://security.debian.org/debian-security/ stretch/updates main contrib no$
deb-src http://security.debian.org/debian-security/ stretch/updates main contri$
#stretch updates
#debian multimedia
deb http://www.deb-multimedia.org stretch main contrib non-free

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: Unable to install software

#12 Post by sunrat »

Sources are wrong. Edit the main lines to this:

Code: Select all

deb http://ftp.cl.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.cl.debian.org/debian/ stretch main contrib non-free
Then update again.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

arg22
Posts: 10
Joined: 2018-05-01 10:51

Re: Unable to install software

#13 Post by arg22 »

deb http://ftp.cl.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.cl.debian.org/debian/ stretch main contrib non-free
#security
deb http://security.debian.org/debian-security/ stretch/updates main contrib no$
deb-src http://security.debian.org/debian-security/ stretch/updates main contri$
#stretch updates
#debian multimedia
deb http://www.deb-multimedia.org stretch main contrib non-free

sudo apt install python-pip
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
E: No se ha podido localizar el paquete python-pip

sudo apt install python-pip
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
E: No se ha podido localizar el paquete python-pip

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Unable to install software

#14 Post by bw123 »

arg22 wrote:sudo apt update
Reading list of packages ... Done
Creating dependency tree
Reading the status information ... Done
All packages are updated.
This isn't right, output should list your sources...

Code: Select all

# apt update
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org stretch/updates InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://deb.debian.org/debian stretch Release 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
Maybe you edited the output for whatever reason?

Maybe you aren't editing the right /etc/apt/sources.list ?

p.s.

Code: Select all

 boxes are cool!
resigned by AI ChatGPT

arg22
Posts: 10
Joined: 2018-05-01 10:51

Re: Unable to install software

#15 Post by arg22 »

thanks for your reply, not sure what you mean with edit the output. if iam making a mistake please tell me, i open with sudo nano /etc/apt/sources.list, edit the file and use ctrl-O to save, then enter and ctrl-X to exit

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Unable to install software

#16 Post by bw123 »

arg22 wrote:thanks for your reply, not sure what you mean with edit the output. if iam making a mistake please tell me, i open with sudo nano /etc/apt/sources.list, edit the file and use ctrl-O to save, then enter and ctrl-X to exit
sunrat asked for the complete output of apt update and your output didn't show any repos being contacted.
resigned by AI ChatGPT

arg22
Posts: 10
Joined: 2018-05-01 10:51

Re: Unable to install software

#17 Post by arg22 »

the outputs i posted are the complete outputs from the shell

arg22
Posts: 10
Joined: 2018-05-01 10:51

Re: Unable to install software

#18 Post by arg22 »

thank you all for your help, just finished installing chrome, and pip3. Just to say i ve tried almost everything i could read, so i re installed debian with the small iso and then asked to pick a repository to download packaged, i tested the suggestions (picked a localone from a nearby college) and it worked. the first time i installed debian used a broken mirror. So thanks for your help

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: Unable to install software

#19 Post by sunrat »

You had 3 problems:
- first you had incorrect repo
- then you had incorrect sources.list entry
- then apt wasn't updating properly. As bw123 said, it should output a list of repos contacted.

You didn't solve the problem but got a working system by reinstalling. Hopefully all is good for you now! :)
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply