You are not logged in.

#1 2010-03-25 09:14:00

fcuk112
Member
From: Warwickshire
Registered: 2010-03-11
Posts: 52

Upgrading CUPS

I am getting this:

[franky@archdaddy ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (4): libcups-1.4.2-4  cups-1.4.2-4  dbus-core-1.2.24-1  dbus-1.2.24-1  

Total Download Size:    0.00 MB
Total Installed Size:   15.02 MB

Proceed with installation? [Y/n] 
checking package integrity...
(4/4) checking for file conflicts                   [##################################] 100%
error: failed to commit transaction (conflicting files)
cups: /etc/cups/printers.conf exists in filesystem
Errors occurred, no packages were upgraded.

How should I proceed?

Thanks.


Archlinux.Club launching soon!  Sign up now @ http://archlinux.launchrock.com

Offline

#2 2010-03-25 09:19:43

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: Upgrading CUPS

backups the file(s) it wants to overwrite and then -Sf cups. then check again your configuration files. See my mail from yesterday on the devel list. In the future - Syu will take care of all config files that are now under pacman control (I hope so).

-Andy

Offline

#3 2010-03-25 09:21:30

fcuk112
Member
From: Warwickshire
Registered: 2010-03-11
Posts: 52

Re: Upgrading CUPS

Thanks for your quick response!


Archlinux.Club launching soon!  Sign up now @ http://archlinux.launchrock.com

Offline

#4 2010-03-25 10:41:43

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: Upgrading CUPS

Same problem here.
Why aren't these files renamed with a .pacsave extension?
Will this problem be fixed upstream or we have to manually backup these files? In this case a news on the homepage should be published.
Cheers,


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#5 2010-03-25 10:51:11

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: Upgrading CUPS

The package contains now new files that were not included in the older cups versions. Pacman will save them like this

[2010-03-25 08:24] warning: /etc/cups/printers.conf saved as /etc/cups/printers.conf.pacsave
[2010-03-25 08:24] warning: /etc/cups/classes.conf saved as /etc/cups/classes.conf.pacsave

This happened because cupsd has created the files by itself so there were not owned by any pkg. Make backups for safety and then pacman -Sf cups.

Offline

#6 2010-03-26 00:29:13

linas
Member
Registered: 2010-03-06
Posts: 46

Re: Upgrading CUPS

AndyRTR wrote:

The package contains now new files that were not included in the older cups versions. Pacman will save them like this

[2010-03-25 08:24] warning: /etc/cups/printers.conf saved as /etc/cups/printers.conf.pacsave
[2010-03-25 08:24] warning: /etc/cups/classes.conf saved as /etc/cups/classes.conf.pacsave

This happened because cupsd has created the files by itself so there were not owned by any pkg. Make backups for safety and then pacman -Sf cups.

The issue is, pacman doesn't rename existing nor new files to pacsave, not even ask. It simply refuses to install (stoppping also other packages).

What pacman version are you using that pacsaves them?

Offline

#7 2010-03-26 00:56:59

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,058

Re: Upgrading CUPS

Using pacman 3.3.3 and I did get the pacsave files:

[2010-03-25 15:22] warning: /etc/cups/subscriptions.conf installed as /etc/cups/subscriptions.conf.pacnew
[2010-03-25 15:22] warning: /etc/cups/classes.conf installed as /etc/cups/classes.conf.pacnew
[2010-03-25 15:22] warning: /etc/cups/printers.conf installed as /etc/cups/printers.conf.pacnew

Offline

#8 2010-03-26 01:02:11

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Upgrading CUPS

I saw this on the news and prepared for it. Yet I got nothing. No pacsaves, no conflicts. My pacman is 3.3.3.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#9 2010-03-26 01:09:11

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,685

Re: Upgrading CUPS

version -5 is in the repos now and it doesn't create the .pacnew files, and no conflicts.


Edit: ...or at least it didn't for me, whereas the previous verion ( -4 ) did.

Last edited by ozar (2010-03-26 01:11:50)


oz

Offline

#10 2010-03-26 02:46:56

Allan
Member
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,839
Website

Re: Upgrading CUPS

That is because you already installed the -4 version and the config files did not change between -4 and -5

Offline

#11 2010-03-26 15:50:42

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,685

Re: Upgrading CUPS

Allan wrote:

That is because you already installed the -4 version and the config files did not change between -4 and -5

Hi, Allen

It was actually version -3 that I was running before installing -5 because I chose not to install -4 when it said there were conflicts. I'd already gone through the needed steps after installing -3 so didn't want to repeat the process.  Perhaps the changes you reference happened at -3 or before.  Either way, I took a chance with -5 last night and all went well.


Edit: never mind, disregard the above because I might be confusing this with the recent GRUB2 package releases that have also been somewhat problematic and/or confusing lately.  wink

Last edited by ozar (2010-03-26 15:57:36)


oz

Offline

#12 2010-03-27 00:09:55

sigmund
Member
From: Milano, Italy, EU
Registered: 2009-12-06
Posts: 50

Re: Upgrading CUPS

anonymous_user wrote:

Using pacman 3.3.3 and I did get the pacsave files:

[2010-03-25 15:22] warning: /etc/cups/subscriptions.conf installed as /etc/cups/subscriptions.conf.pacnew
[2010-03-25 15:22] warning: /etc/cups/classes.conf installed as /etc/cups/classes.conf.pacnew
[2010-03-25 15:22] warning: /etc/cups/printers.conf installed as /etc/cups/printers.conf.pacnew

The same happens to me. Pacman version is 3.3.3-1, while Powerpill is 17.1-1

pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 archlinuxfr is up to date
 kdemod-core is up to date
 kdemod-extragear is up to date
 kdemod-playground is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (12): bluez-4.63-1  libcups-1.4.2-5  cups-1.4.2-5  gsfonts-1.0.7pre44-2  libgdiplus-2.6.2-1  mono-2.6.3-1  openssl-0.9.8n-1  pcre-8.02-1  ufw-0.29.3-2  yajl-1.0.9-3  
              package-query-0.1-1  yaourt-0.9.3-1  

Total Download Size:    0.00 MB
Total Installed Size:   169.62 MB

Proceed with installation? [Y/n] 
checking package integrity...
(12/12) checking for file conflicts                 [###################################################################################################################] 100%
error: failed to commit transaction (conflicting files)
cups: /etc/cups/classes.conf exists in filesystem
cups: /etc/cups/printers.conf exists in filesystem
cups: /etc/cups/subscriptions.conf exists in filesystem
Errors occurred, no packages were upgraded.

FYI: I have noticed three files more: cups.conf.O, printers.conf.O, subscriptions.conf.O ...

Renaming the conflicting files solved, as stated before, the issue. A cupsd.conf.pacnew was re-edited to re-add the lpadmin user.
Instead of the conflicting files three 0 length files were created: I simply copied back the printers.conf (the only file carrying specific info on my HP printer).
For better understanding, I compared the files with meld, but diff would do the same as well.


Definitely moving to GNU/Linux made me trust Computer Science once again.
Definitely moving to Arch made me enjoy and understand GNU/Linux once again.

Offline

Board footer

Powered by FluxBB