Can't print after new install studio 19.10 Cupserver failed

Asked by Larooy on 2020-03-19

Hello, I asked this question twice now. I have installed 19.10 also twice. But my printer HPdeskjet J6400 will not print. It is in the system and I can make an scan. The Cups-server said failled to connect. I have set me as an administrator.
Now what to do?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2020-05-02
Last reply:
2020-05-18

What is the output of:

lsb_release -a; uname -a; lsusb; apt-cache policy hplip

Thanks

Larooy (delarooy) said : #2

Sorry, I don't know what you mean, this abracadabra for me

Copy the line I gave and press CTRL + ALT + T

Paste the command to the terminal and press ENTER

Copy the output of the command and paste as an update on:
https://answers.launchpad.net/ubuntu/+question/689385

Larooy (delarooy) said : #4

larooy@larooy-MCP61:~$ lsb_release -a; uname -a; lsusb; apt-cache policy hplip
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan
Linux larooy-MCP61 5.3.0-42-lowlatency #34-Ubuntu SMP PREEMPT Fri Feb 28 06:31:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Bus 001 Device 004: ID 0930:0b09 Toshiba Corp. PX1396E-3T01 External hard drive
Bus 001 Device 003: ID 0bda:0111 Realtek Semiconductor Corp. RTS5111 Card Reader Controller
Bus 001 Device 002: ID 03f0:3312 HP, Inc OfficeJet J6410
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
hplip:
  Geïnstalleerd: 3.19.6+dfsg0-1ubuntu1
  Kandidaat: 3.19.6+dfsg0-1ubuntu1
  Versietabel:
 *** 3.19.6+dfsg0-1ubuntu1 500
        500 http://nl.archive.ubuntu.com/ubuntu eoan/main amd64 Packages
        100 /var/lib/dpkg/status
larooy@larooy-MCP61:~$

Thanks !

Larooy (delarooy) said : #5

Hello,
What to do now?
I give you the output.
Help me please, I can't print.
My regards Louise

Support for you printer was added in hplip 2.8.4

If you remove the printer then use the cups website:
Http://localhost:631

Then add the printer there. Does it work OK there?

Larooy (delarooy) said : #7

Hello Andrew, I can't remove the printer the system>print> does not see the printer I can't do anything in that display only connect with cupsserver what failed. It said go to system> Administration>Server but I don't see or find this Administration.
I try to disconnect and restart and connect the printer, nothing, than restart but there is nothing different.
Please help,
Louise

Manfred Hampl (m-hampl) said : #8

What output do you receive for the command

systemctl status cups

(If the output ends with something like "lines 1-10/10 (END)", then you have to press the "q" key to continue.)

Larooy (delarooy) said : #9

Hello Manfred,
Thanks for helping me
This is the output of the command:

larooy@larooy-MCP61:~$ 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 Wed 2020-04-22 21:21:03
CEST;
     Docs: man:cupsd(8)
  Process: 1218 ExecStart=/usr/sbin/cupsd -l (code=killed, signal=TERM)
 Main PID: 1218 (code=killed, signal=TERM)

apr 22 21:21:03 larooy-MCP61 systemd[1]: Started CUPS Scheduler.
apr 22 21:21:03 larooy-MCP61 systemd[1]: cups.service: Main process exited,
code
apr 22 21:21:03 larooy-MCP61 systemd[1]: cups.service: Succeeded.
apr 22 21:21:03 larooy-MCP61 systemd[1]: cups.service: Start request
repeated to
apr 22 21:21:03 larooy-MCP61 systemd[1]: cups.service: Failed with result
'start
apr 22 21:21:03 larooy-MCP61 systemd[1]: Failed to start CUPS Scheduler.
larooy@larooy-MCP61:~$

Op di 21 apr. 2020 om 17:53 schreef Manfred Hampl <
<email address hidden>>:

> Your question #689385 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> What output do you receive for the command
>
> systemctl status cups
>
> (If the output ends with something like "lines 1-10/10 (END)", then you
> have to press the "q" key to continue.)
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #10

What is the output of

diff /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf

(based on https://ubuntu-mate.community/t/cups-service-stopped-um-18-04/17381/8 )

Larooy (delarooy) said : #11

Hello Manfred,
The output said: access denied

Op do 23 apr. 2020 om 17:58 schreef Manfred Hampl <
<email address hidden>>:

> Your question #689385 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> What is the output of
>
> diff /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
>
> (based on https://ubuntu-mate.community/t/cups-service-stopped-
> um-18-04/17381/8 )
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #12

ok, then try

sudo ls -l /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
sudo diff /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf

Larooy (delarooy) said : #13

Oké all the output is:

larooy@larooy-MCP61:~$ diff /usr/share/cups/cupsd.conf.default
/etc/cups/cupsd.conf
diff: /etc/cups/cupsd.conf: Toegang geweigerd
larooy@larooy-MCP61:~$ sudo ls -l /usr/share/cups/cupsd.conf.default
/etc/cups/cupsd.conf
[sudo] wachtwoord voor larooy:
-rw-r----- 1 root lp 21 mrt 19 20:37 /etc/cups/cupsd.conf
-rw-r--r-- 1 root root 6403 sep 5 2019 /usr/share/cups/cupsd.conf.default
larooy@larooy-MCP61:~$ sudo diff /usr/share/cups/cupsd.conf.default
/etc/cups/cupsd.conf
1,186c1
< #
< # Configuration file for the CUPS scheduler. See "man cupsd.conf" for a
< # complete description of this file.
< #
<
< # Log general information in error_log - change "warn" to "debug"
< # for troubleshooting...
< LogLevel warn
< PageLogFormat
<
< # Deactivate CUPS' internal logrotating, as we provide a better one,
especially
< # LogLevel debug2 gets usable now
< MaxLogSize 0
<
< # Only listen for connections from the local machine.
< Listen localhost:631
< Listen /run/cups/cups.sock
<
< # Show shared printers on the local network.
< Browsing Off
< BrowseLocalProtocols dnssd
<
< # Default authentication type, when authentication is required...
< DefaultAuthType Basic
<
< # Web interface setting...
< WebInterface Yes
<
< # Restrict access to the server...
< <Location />
< Order allow,deny
< </Location>
<
< # Restrict access to the admin pages...
< <Location /admin>
< Order allow,deny
< </Location>
<
< # Restrict access to configuration files...
< <Location /admin/conf>
< AuthType Default
< Require user @SYSTEM
< Order allow,deny
< </Location>
<
< # Restrict access to log files...
< <Location /admin/log>
< AuthType Default
< Require user @SYSTEM
< Order allow,deny
< </Location>
<
< # Set the default printer/job policies...
< <Policy default>
< # Job/subscription privacy...
< JobPrivateAccess default
< JobPrivateValues default
< SubscriptionPrivateAccess default
< SubscriptionPrivateValues default
<
< # Job-related operations must be done by the owner or an
administrator...
< <Limit Create-Job Print-Job Print-URI Validate-Job>
< Order deny,allow
< </Limit>
<
< <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job
Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription
Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job
Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job
CUPS-Get-Document>
< Require user @OWNER @SYSTEM
< Order deny,allow
< </Limit>
<
< # All administration operations require an administrator to
authenticate...
< <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer
CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
< AuthType Default
< Require user @SYSTEM
< Order deny,allow
< </Limit>
<
< # All printer operations require a printer operator to authenticate...
< <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer
Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs
Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer
Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs
CUPS-Reject-Jobs>
< AuthType Default
< Require user @SYSTEM
< Order deny,allow
< </Limit>
<
< # Only the owner or an administrator can cancel or authenticate a job...
< <Limit Cancel-Job CUPS-Authenticate-Job>
< Require user @OWNER @SYSTEM
< Order deny,allow
< </Limit>
<
< <Limit All>
< Order deny,allow
< </Limit>
< </Policy>
<
< # Set the authenticated printer/job policies...
< <Policy authenticated>
< # Job/subscription privacy...
< JobPrivateAccess default
< JobPrivateValues default
< SubscriptionPrivateAccess default
< SubscriptionPrivateValues default
<
< # Job-related operations must be done by the owner or an
administrator...
< <Limit Create-Job Print-Job Print-URI Validate-Job>
< AuthType Default
< Order deny,allow
< </Limit>
<
< <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job
Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription
Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job
Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job
CUPS-Get-Document>
< AuthType Default
< Require user @OWNER @SYSTEM
< Order deny,allow
< </Limit>
<
< # All administration operations require an administrator to
authenticate...
< <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer
CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
< AuthType Default
< Require user @SYSTEM
< Order deny,allow
< </Limit>
<
< # All printer operations require a printer operator to authenticate...
< <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer
Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs
Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer
Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs
CUPS-Reject-Jobs>
< AuthType Default
< Require user @SYSTEM
< Order deny,allow
< </Limit>
<
< # Only the owner or an administrator can cancel or authenticate a job...
< <Limit Cancel-Job CUPS-Authenticate-Job>
< AuthType Default
< Require user @OWNER @SYSTEM
< Order deny,allow
< </Limit>
<
< <Limit All>
< Order deny,allow
< </Limit>
< </Policy>
<
< # Set the kerberized printer/job policies...
< <Policy kerberos>
< # Job/subscription privacy...
< JobPrivateAccess default
< JobPrivateValues default
< SubscriptionPrivateAccess default
< SubscriptionPrivateValues default
<
< # Job-related operations must be done by the owner or an
administrator...
< <Limit Create-Job Print-Job Print-URI Validate-Job>
< AuthType Negotiate
< Order deny,allow
< </Limit>
<
< <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job
Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription
Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job
Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job
CUPS-Get-Document>
< AuthType Negotiate
< Require user @OWNER @SYSTEM
< Order deny,allow
< </Limit>
<
< # All administration operations require an administrator to
authenticate...
< <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer
CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
< AuthType Default
< Require user @SYSTEM
< Order deny,allow
< </Limit>
<
< # All printer operations require a printer operator to authenticate...
< <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer
Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs
Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer
Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs
CUPS-Reject-Jobs>
< AuthType Default
< Require user @SYSTEM
< Order deny,allow
< </Limit>
<
< # Only the owner or an administrator can cancel or authenticate a job...
< <Limit Cancel-Job CUPS-Authenticate-Job>
< AuthType Negotiate
< Require user @OWNER @SYSTEM
< Order deny,allow
< </Limit>
<
< <Limit All>
< Order deny,allow
< </Limit>
< </Policy>
---
> PreserveJobFiles Yes
larooy@larooy-MCP61:~$ ^C
larooy@larooy-MCP61:~$

Op do 23 apr. 2020 om 21:58 schreef Manfred Hampl <
<email address hidden>>:

> Your question #689385 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> ok, then try
>
> sudo ls -l /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
> sudo diff /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #14

https://ubuntu-mate.community/t/cups-service-stopped-um-18-04/17381 describes a similar problem and proposes:

sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
systemctl restart cups

Larooy (delarooy) said : #15

Hello Manfred,
I tried the sudo ... but nothing is happening
Have a good healthy weekend
Louise

Op vr 24 apr. 2020 om 11:28 schreef Manfred Hampl <
<email address hidden>>:

> Your question #689385 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> https://ubuntu-mate.community/t/cups-service-stopped-um-18-04/17381
> describes a similar problem and proposes:
>
> sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
> systemctl restart cups
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/689385/+confirm?answer_id=13
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #16

What output do you now receive for the command

systemctl status cups

Larooy (delarooy) said : #17

Hi Manfred,
The output is:

larooy@larooy-MCP61:~$ systemctl status cups
● cups.service - CUPS Scheduler
   Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor
preset: enabled)
   Active: active (running) since Sun 2020-04-26 20:03:35 CEST; 3min 30s ago
     Docs: man:cupsd(8)
 Main PID: 562 (cupsd)
    Tasks: 2 (limit: 4580)
   Memory: 8.4M
   CGroup: /system.slice/cups.service
           ├─ 562 /usr/sbin/cupsd -l
           └─1177 /usr/lib/cups/notifier/dbus dbus://

apr 26 20:03:35 larooy-MCP61 systemd[1]: Started CUPS Scheduler.
apr 26 20:04:13 larooy-MCP61 /hpfax[1187]: [1187]: error: Failed to create
/var/spool/cups/t
lines 1-13/13 (END)

Op za 25 apr. 2020 om 14:34 schreef Manfred Hampl <
<email address hidden>>:

> Your question #689385 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> What output do you now receive for the command
>
> systemctl status cups
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #18

The cups demon seems to be running again.
Now try removing and re-adding the printer.

Larooy (delarooy) said : #19

Hi Manfred,
I removed the printer, I have tried this before, and now I can't add a
printer in the system.
May be you have a terminal solution to add the printer
🙏

Op zo 26 apr. 2020 om 22:08 schreef Manfred Hampl <
<email address hidden>>:

> Your question #689385 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> The cups demon seems to be running again.
> Now try removing and re-adding the printer.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/689385/+confirm?answer_id=17
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #20

Visit the web page

http://localhost:631

There you should be able to add the printer.

Larooy (delarooy) said : #21

Sorry ? wich webpage

Op ma 27 apr. 2020 om 21:27 schreef Manfred Hampl <
<email address hidden>>:

> Your question #689385 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Visit the web page
>
> http://localhost:631
>
> There you should be able to add the printer.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/689385/+confirm?answer_id=19
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #22

It is clearly stated in the answer:
This web page:

http://localhost:631

Larooy (delarooy) said : #23

The webpage doesn't work or exist, its just your localhost

Manfred Hampl (m-hampl) said : #24

What is now the output of the commands

grep "WebInterface" /etc/cups/cupsd.conf
grep "Listen" /etc/cups/cupsd.conf
systemctl status cups
ps -A|grep cupsd
sudo netstat -tupln|grep 631

Larooy (delarooy) said : #25

larooy@larooy-MCP61:~$ grep "WebInterface" /etc/cups/cupsd.conf
grep: /etc/cups/cupsd.conf: Toegang geweigerd
larooy@larooy-MCP61:~$ grep "Listen" /etc/cups/cupsd.conf
grep: /etc/cups/cupsd.conf: Toegang geweigerd
larooy@larooy-MCP61:~$ 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 Tue 2020-04-28 15:13:47 CEST;
     Docs: man:cupsd(8)
  Process: 1175 ExecStart=/usr/sbin/cupsd -l (code=killed, signal=TERM)
 Main PID: 1175 (code=killed, signal=TERM)

apr 28 15:13:47 larooy-MCP61 systemd[1]: Started CUPS Scheduler.
apr 28 15:13:47 larooy-MCP61 systemd[1]: cups.service: Main process exited, code
apr 28 15:13:47 larooy-MCP61 systemd[1]: cups.service: Succeeded.
apr 28 15:13:47 larooy-MCP61 systemd[1]: cups.service: Start request repeated to
apr 28 15:13:47 larooy-MCP61 systemd[1]: cups.service: Failed with result 'start
apr 28 15:13:47 larooy-MCP61 systemd[1]: Failed to start CUPS Scheduler.
...skipping...
● cups.service - CUPS Scheduler
   Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: ena
   Active: failed (Result: start-limit-hit) since Tue 2020-04-28 15:13:47 CEST;
     Docs: man:cupsd(8)
  Process: 1175 ExecStart=/usr/sbin/cupsd -l (code=killed, signal=TERM)
 Main PID: 1175 (code=killed, signal=TERM)

apr 28 15:13:47 larooy-MCP61 systemd[1]: Started CUPS Scheduler.
apr 28 15:13:47 larooy-MCP61 systemd[1]: cups.service: Main process exited, code
apr 28 15:13:47 larooy-MCP61 systemd[1]: cups.service: Succeeded.
apr 28 15:13:47 larooy-MCP61 systemd[1]: cups.service: Start request repeated to
apr 28 15:13:47 larooy-MCP61 systemd[1]: cups.service: Failed with result 'start
apr 28 15:13:47 larooy-MCP61 systemd[1]: Failed to start CUPS Scheduler.
~
~
~
~
~
~
~
~
~
~
log file: udo netstat -tupln|grep 631

Manfred Hampl (m-hampl) said : #26

Your cups server is down again.

What is the output of

sudo ls -l /etc/cups/cupsd.conf

Larooy (delarooy) said : #28

The output is:
-rw-r----- 1 root lp 21 apr 27 20:46 /etc/cups/cupsd.conf

Op di 28 apr. 2020 om 15:44 schreef Manfred Hampl <
<email address hidden>>:

> Your question #689385 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> Your cups server is down again.
>
> What is the output of
>
> sudo ls -l /etc/cups/cupsd.conf
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #29

Yes, somebody has again overwritten your cups configuration file with nonsense, and this leads to the situation that the cups server cannot start, and printing and printer configuration fails.

Try again with the following commands:

sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
systemctl restart cups

and then try accessing the web address

http://localhost:631

Do you get the cups server web interface loaded?
Can you define and configure the printer?

Larooy (delarooy) said : #30

No sorry, doesn't work
[sudo] wachtwoord voor larooy:
larooy@larooy-MCP61:~$ sudo cp /usr/share/cups/cupsd.conf.default
/etc/cups/cupsd.conf
larooy@larooy-MCP61:~$ systemctl restart cups
larooy@larooy-MCP61:~$ http://localhost:631
bash: http://localhost:631: Bestand of map bestaat niet (don't exist)

Op di 28 apr. 2020 om 17:58 schreef Manfred Hampl <
<email address hidden>>:

> Your question #689385 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Yes, somebody has again overwritten your cups configuration file with
> nonsense, and this leads to the situation that the cups server cannot
> start, and printing and printer configuration fails.
>
> Try again with the following commands:
>
> sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
> systemctl restart cups
>
> and then try accessing the web address
>
> http://localhost:631
>
> Do you get the cups server web interface loaded?
> Can you define and configure the printer?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/689385/+confirm?answer_id=28
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #31

http://localhost:631 is not a command to execute in the terminal window, but an address that you have to visit with your web browser. Just click on that link.

Larooy (delarooy) said : #32

It worked. Yes now the website is/was working and I manage it to add the
printer by choosing the same printer but with a somewhat different name.
Thank you very much 👍

Op di 28 apr. 2020 om 20:29 schreef Manfred Hampl <
<email address hidden>>:

> Your question #689385 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> http://localhost:631 is not a command to execute in the terminal window,
> but an address that you have to visit with your web browser. Just click
> on that link.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/689385/+confirm?answer_id=30
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> You received this question notification because you asked the question.
>

Larooy (delarooy) said : #33

O no nou its gone again!
and the page localhost doesn't work

Op wo 29 apr. 2020 om 13:43 schreef Larooy <
<email address hidden>>:

> Your question #689385 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> Status: Answered => Open
>
> You are still having a problem:
> It worked. Yes now the website is/was working and I manage it to add the
> printer by choosing the same printer but with a somewhat different name.
> Thank you very much 👍
>
> Op di 28 apr. 2020 om 20:29 schreef Manfred Hampl <
> <email address hidden>>:
>
> > Your question #689385 on Ubuntu changed:
> > https://answers.launchpad.net/ubuntu/+question/689385
> >
> > Status: Open => Answered
> >
> > Manfred Hampl proposed the following answer:
> > http://localhost:631 is not a command to execute in the terminal window,
> > but an address that you have to visit with your web browser. Just click
> > on that link.
> >
> > --
> > If this answers your question, please go to the following page to let us
> > know that it is solved:
> >
> https://answers.launchpad.net/ubuntu/+question/689385/+confirm?answer_id=30
> >
> > If you still need help, you can reply to this email or go to the
> > following page to enter your feedback:
> > https://answers.launchpad.net/ubuntu/+question/689385
> >
> > You received this question notification because you asked the question.
> >
>
> --
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #34

I do not know what there is going on.

What is the output of

sudo ls -l /etc/cups/cupsd.conf
sudo cat /etc/cups/cupsd.conf

It seems to me that somebody or something is replacing the cups configuration file with nonsense.
Do you follow some (maybe wrong) instruction that may have an effect on the file /etc/cups/cupsd.conf?

Larooy (delarooy) said : #35

The output is:
-rw-r----- 1 root lp 21 apr 29 13:31 /etc/cups/cupsd.conf

Op wo 29 apr. 2020 om 16:03 schreef Manfred Hampl <
<email address hidden>>:

> Your question #689385 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> I do not know what there is going on.
>
> What is the output of
>
> sudo ls -l /etc/cups/cupsd.conf
> sudo cat /etc/cups/cupsd.conf
>
> It seems to me that somebody or something is replacing the cups
> configuration file with nonsense.
> Do you follow some (maybe wrong) instruction that may have an effect on
> the file /etc/cups/cupsd.conf?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #36

Seems to be the same wrong replacement in the cups config file.
Can you remember which action you did today 13:31 o'clock?

Replacing the contents with the default should work, the same commands as before:

sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
systemctl restart cups

There is one additional problem:
For full access right to printing you have to be member of the lp (line printer) group. YOU seem not to be member of that group (but probably member of lpadmin - line printer administrators). You should add yourself to the lp group.

sudo usermod -a -G lp larooy

(This takes effect only after logging out and logging in again)

Larooy (delarooy) said : #37

Hello Manfred,
I did the sudo's again and now it seem to work. I restart my computer twice
and the printer didn't go away and I have contact with the localhost.
Thank you very much, you did a great job!

Op wo 29 apr. 2020 om 22:23 schreef Manfred Hampl <
<email address hidden>>:

> Your question #689385 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Seems to be the same wrong replacement in the cups config file.
> Can you remember which action you did today 13:31 o'clock?
>
> Replacing the contents with the default should work, the same commands
> as before:
>
> sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
> systemctl restart cups
>
> There is one additional problem:
> For full access right to printing you have to be member of the lp (line
> printer) group. YOU seem not to be member of that group (but probably
> member of lpadmin - line printer administrators). You should add yourself
> to the lp group.
>
> sudo usermod -a -G lp larooy
>
> (This takes effect only after logging out and logging in again)
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/689385/+confirm?answer_id=35
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/689385
>
> You received this question notification because you asked the question.
>

Launchpad Janitor (janitor) said : #38

This question was expired because it remained in the 'Open' state without activity for the last 15 days.