LinuxQuestions.org
Help answer threads with 0 replies.
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-12-2021, 06:09 PM   #16
pepitolindo
LQ Newbie
 
Registered: Apr 2015
Posts: 29

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled

Hello Michaelk,

I could only run the first code in the link with the following result

master@hal:~$ mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf-orig
mv: cannot move '/etc/cups/cupsd.conf' to '/etc/cups/cupsd.conf-orig': Permission denied
master@hal:~$
 
Old 02-12-2021, 06:13 PM   #17
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by pepitolindo View Post
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:~$
That indicates that hp-setup was likely run without installing hplip-gui first. That is a must, and you do not say it was installed.

Another very real problem appears that you are running python 2.7. I believe the latest hplip uses python 3, and the install of hplip-gui for me installs several dependencies of python3 and qt5 packages.

Maybe you need to do a full upgrade.
sudo apt update
sudo apt upgrade
sudo apt install hplip-gui
then try hp-setup again.
 
Old 02-12-2021, 06:13 PM   #18
pepitolindo
LQ Newbie
 
Registered: Apr 2015
Posts: 29

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hello Michaelk,

I tried it again with the sudo on both instances

master@hal:~$ mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf-orig
mv: cannot move '/etc/cups/cupsd.conf' to '/etc/cups/cupsd.conf-orig': Permission denied
master@hal:~$ sudo mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf-orig
[sudo] password for master:
master@hal:~$ sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
master@hal:~$ systemctl start cups
master@hal:~$
 
Old 02-12-2021, 06:14 PM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
You need to use sudo because /etc/ requires root privileges.

Have you verified the contents of your cupsd.conf file yet?However, before making any changes verify the contents of your /etc/cups/cupsd.conf file.
Is it one line or a bunch?

Be sure to check the status

sudo systemctl status cups

Last edited by michaelk; 02-12-2021 at 06:16 PM.
 
Old 02-12-2021, 06:34 PM   #20
pepitolindo
LQ Newbie
 
Registered: Apr 2015
Posts: 29

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hello Michaelk,

Thanks you for the suggestions. I finally was able to enter localhost:631 and installed my printer. I have already printed some pages. However I need to fix the printer itself because it is missing every other line.
I really appreciate your help.
Best regards
 
Old 02-12-2021, 06:41 PM   #21
pepitolindo
LQ Newbie
 
Registered: Apr 2015
Posts: 29

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hello Computersavvy,
Thank you for your pointers. I have Python 3 installed because I have been writing a small program in that language.

/home/master/My Python files
/home/master/PycharmProjects/Clocks/venv/lib64/python3.6
/home/master/Downloads/hplip-3.20.11/ppd/classppd/hpcups/hp-Python.ppd.gz
/home/master/Downloads/hplip-3.20.9/hplip-3.20.9/ppd/classppd/hpcups/hp-Python.ppd.gz
/home/master/Downloads/hplip-3.20.9/ppd/classppd/hpcups/hp-Python.ppd.gz
/home/master/Downloads/hplip-3.20.11/ppd/classppd/hpcups/hp-Python10.ppd.gz
/home/master/Downloads/hplip-3.20.9/hplip-3.20.9/ppd/classppd/hpcups/hp-Python10.ppd.gz
/home/master/Downloads/hplip-3.20.9/ppd/classppd/hpcups/hp-Python10.ppd.gz
/home/master/Downloads/hplip-3.20.11/ppd/classppd/hpcups/hp-Python11.ppd.gz
/home/master/Downloads/hplip-3.20.9/hplip-3.20.9/ppd/classppd/hpcups/hp-Python11.ppd.gz
/home/master/Downloads/hplip-3.20.9/ppd/classppd/hpcups/hp-Python11.ppd.gz
/home/master/Downloads/hplip-3.20.11/data/images/other/powered_by_python.png
/home/master/Downloads/hplip-3.20.9/data/images/other/powered_by_python.png
/home/master/Downloads/hplip-3.20.9/hplip-3.20.9/data/images/other/powered_by_python.png
/home/master/PycharmProjects/Clocks/venv/bin/python
/home/master/PycharmProjects/Clocks/venv/bin/python3
/home/master/PycharmProjects/Clocks/venv/bin/python3.6

Thank you for taking the time to help,
Best regards
 
  


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:02 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