LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2021, 04:35 PM   #1
pepitolindo
LQ Newbie
 
Registered: Apr 2015
Posts: 29
Blog Entries: 1

Rep: Reputation: Disabled
Canīt access http://localhost:631


I have downloaded and installed CUPS as instructed to install an HP Deskjet 2700 series in wireless mode in a Toshiba laptop running Linux Mint 19.3
Every time I try to access http://localhost:631 I get "Unable to connect" message. No proxy has been selected and I donīt think cupsd is running. Please help.
 
Old 02-11-2021, 05:00 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
I believe cupsd has to be running in order for that port to be available
 
Old 02-11-2021, 06:11 PM   #3
pepitolindo
LQ Newbie
 
Registered: Apr 2015
Posts: 29

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
How can I make sure cupsd is installed?
 
Old 02-11-2021, 06:32 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
What happens when you run the command

sudo systemctl start cups
 
Old 02-11-2021, 09:40 PM   #5
pepitolindo
LQ Newbie
 
Registered: Apr 2015
Posts: 29

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
nothing happens when I run this sudo

master@hal:~$ sudo systemctl start cups
[sudo] password for master:
master@hal:~$ sudo systemctl start cups
master@hal:~$ ^C
master@hal:~$
master@hal:~$ sudo systemctl start cups
[sudo] password for master:
master@hal:~$
 
Old 02-11-2021, 09:51 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,361
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
What do you get when you run this command?

Code:
ps -A | grep cups
If CUPS is running, it should return something like

Code:
[some process number] ?        00:00:15 cupsd
This article may help: https://ubuntu.com/server/docs/service-cups
 
Old 02-12-2021, 04:38 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
No response means the command ran successfully.

I did not phrase my response correctly. hopefully cups is started you should be able to see its web configuration page i.e. localhost:631
 
Old 02-12-2021, 12:48 PM   #8
pepitolindo
LQ Newbie
 
Registered: Apr 2015
Posts: 29

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hi Michaelk,
if the sudo run correctly, what would be the next step to access localhost:631?
 
Old 02-12-2021, 12:51 PM   #9
pepitolindo
LQ Newbie
 
Registered: Apr 2015
Posts: 29

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hi Frankbell,

I run the code twice and nothing happened ....

master@hal:~$ ps -A | grep cups
master@hal:~$ ps -A | grep cups
master@hal:~$
 
Old 02-12-2021, 12:57 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Open your file browser i.e. firefox etc and enter as the URL localhost:631 as you originally posted.
What are you trying to accomplish?

Have you already setup the printer using hplip yet? The min version for hplip for your printer is 3.20.5 and if Mint 19 version is not at least that version you will need to update it first. Your printer requires a plugin which is downloaded when the printer is setup.

https://developers.hp.com/hp-linux-i..._devices/index

Look at the output of the command:

sudo systemctl status cups

Last edited by michaelk; 02-12-2021 at 12:59 PM.
 
Old 02-12-2021, 01:16 PM   #11
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
I have ubuntu 20.10 installed on my Pi and 20.04 in a VM. On both I had hplip installed by default, but the hplip-gui package was not there. Without the hplip-gui package you can only do command line control of the printer and it is difficult to set it up.

I ran "sudo apt install hplip hplip-gui" and it verified the hplip version and installed the matching hplip-gui with all the dependencies.

I then ran "hp-setup" and was able to identify the printer and set it up. While hp-setup is running it will download and install the plugin that is needed for the scanner to be accessed.

Try all that and see if things work better afterward. It should work since Mint is similar to Ubuntu.
 
Old 02-12-2021, 01:43 PM   #12
pepitolindo
LQ Newbie
 
Registered: Apr 2015
Posts: 29

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hello Computersavvy,
Thanks for your directions, however it looks like I did not run hp-setup correctly.....

Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for dbus (1.12.2-1ubuntu1.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
master@hal:~$ hp-setup
Traceback (most recent call last):
File "/usr/bin/hp-setup", line 48, in <module>
from base import device, utils, tui, models, module, services, os_utils
File "/usr/share/hplip/base/device.py", line 42, in <module>
from . import status
File "/usr/share/hplip/base/status.py", line 50, in <module>
import hpmudext
ImportError: /usr/lib/python2.7/dist-packages/hpmudext.so: undefined symbol: ipAddressBuff
master@hal:~$
 
Old 02-12-2021, 01:55 PM   #13
pepitolindo
LQ Newbie
 
Registered: Apr 2015
Posts: 29

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hello Michaelk,
I have Linux Mint 19.3 and I think I also have version 3.20.5 of HPLIP.

Then I run the command you suggested:

master@hal:~$ sudo systemctl status cups
● cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: ena
Active: failed (Result: start-limit-hit) since Fri 2021-02-12 10:57:30 CST; 2
Docs: man:cupsd(8)
Main PID: 2636 (code=killed, signal=TERM)

Feb 12 10:57:30 hal systemd[1]: cups.service: Service hold-off time over, schedu
Feb 12 10:57:30 hal systemd[1]: cups.service: Scheduled restart job, restart cou
Feb 12 10:57:30 hal systemd[1]: Stopped CUPS Scheduler.
Feb 12 10:57:30 hal systemd[1]: cups.service: Start request repeated too quickly
Feb 12 10:57:30 hal systemd[1]: cups.service: Failed with result 'start-limit-hi
Feb 12 10:57:30 hal systemd[1]: Failed to start CUPS Scheduler.
lines 1-12/12 (END)
 
Old 02-12-2021, 01:58 PM   #14
pepitolindo
LQ Newbie
 
Registered: Apr 2015
Posts: 29

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hi Michaelk,

I just checked and I have HPLIP version 3.20.9
 
Old 02-12-2021, 02:53 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Make sure your /etc/cups/cups.conf file contains more then one line. Check out this thread:

https://forums.linuxmint.com/viewtopic.php?t=310426
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Access Cups Admin @ Http://localhost:631 Perps SUSE / openSUSE 8 12-26-2018 02:36 AM
Can't find http://localhost:631 encore Slackware 5 03-07-2005 06:26 PM
can't load http://localhost:631 in browser cragwolf Slackware 2 09-06-2004 06:43 PM
can't access http://localhost:631 (for cups printing) TheOneAndOnlySM Slackware 4 10-14-2003 08:01 PM
What the heck is http://localhost:631 glenn69 Linux - Newbie 5 10-04-2003 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration