You are not logged in.

#1 2012-01-21 02:56:17

elzorro
Member
Registered: 2009-12-24
Posts: 40

Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

Hi
I accidentally overwrote etc/pacman.conf with the old /etc/pacman.conf.pacnew.
Pacman now appears to work but disregards the signing of packages.
Is there an copy of the pacman.conf from the upgrade around so I can merge
the two files. perhaps pacman.conf~, but no I think this is overwritten too.
Regardz
El Zorro

Offline

#2 2012-01-21 03:06:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,626
Website

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

The pacnew version includes everything for package signing.  All you will have lost is any personal changes you have made.

The package signing lines are, however, commented out except for the "SigLevel = Never" line.  Just read the instructions within the comments and uncomment the appropriate SigLevel line (and comment the "Never" line).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2012-01-21 06:21:04

dodo3773
Member
Registered: 2011-03-17
Posts: 818

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

Click on the packages link at the top of this forum. Search for and go to the pacman package. Click on the link called "Source Files". It is the same for a lot of packages. If you cannot find it in the source files you can download the package from the site and extract it. You will most likely find it then.

Last edited by dodo3773 (2012-01-21 06:31:22)

Offline

#4 2012-01-21 06:28:42

elzorro
Member
Registered: 2009-12-24
Posts: 40

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

Hi Trilby,
              it may be the mouldy oldy one as there is no reference to "SigLevel = Never"  it does not seem to exist only "Architecture = auto"
Here is the current /etc/pacman.conf


#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
HoldPkg     = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst   = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl -C - -f %u > %o
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options (all disabled by default)
#UseSyslog
#ShowSize
#UseDelta
#TotalDownload
#CheckSpace

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra] 
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs



Trilby wrote:

The pacnew version includes everything for package signing.  All you will have lost is any personal changes you have made.

The package signing lines are, however, commented out except for the "SigLevel = Never" line.  Just read the instructions within the comments and uncomment the appropriate SigLevel line (and comment the "Never" line).

Last edited by elzorro (2012-01-21 06:31:50)

Offline

#5 2012-01-21 09:00:48

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

Just reinstall pacman.

Offline

#6 2012-01-21 10:31:46

elzorro
Member
Registered: 2009-12-24
Posts: 40

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

Thanks tomk
             that is real KISS to the core,
                                         but I might wait a little while until keys and signing are better sorted out, all that entropy stuff took an age last time
Cheers
El Zorro



tomk wrote:

Just reinstall pacman.

Offline

#7 2012-01-21 10:54:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

What did you do to generate entropy?

Offline

#8 2012-01-21 11:24:46

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

elzorro wrote:

Thanks tomk
             that is real KISS to the core,
                                         but I might wait a little while until keys and signing are better sorted out, all that entropy stuff took an age last time
Cheers
El Zorro



tomk wrote:

Just reinstall pacman.

It may not be generally indicated, but you can speed up the gaining of entropy by doing things smile

Move the mouse around, cat a file to /dev/null... etc. Sitting there waiting for things to happen will let it take quite a while.


Arch i686 on Phenom X4 | GTX760

Offline

#9 2012-01-21 11:29:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

[root@greeen ~]# pacman-key --init
gpg: Generating pacman keychain master key...
Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 300 more bytes)

An example of what could "other work" be could be welcome.

Last edited by karol (2012-01-21 12:43:46)

Offline

#10 2012-01-21 13:12:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,626
Website

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

karol wrote:

An example of what could "other work" be could be welcome.

Agreed.  As it turns out, going off to do some house-cleaning doesn't help.  While it lowers the entropy of my home, none of seems to end up in my computer! wink


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2012-01-21 13:15:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

Offline

#12 2012-01-21 14:06:54

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

one example why more entropy required.

Offline

#13 2012-01-21 16:22:41

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,626
Website

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

I was of course being facetious with the house-cleaning - really, me cleaning ... that is a joke - and I roughly understood what I needed to do.  But I was not aware that even just moving the mouse or hitting keys would help.  I figured I had to do some processor intensive work.  A note as is seen in Kgas's link would be plenty.  It says something along the lines "do other work such as .... " rather than just "do other work".


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#14 2012-01-21 16:40:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

Trilby, I've cleaned my computer screen yesterday and now I've spit on it for the second time today. Looks like you'll be doing come cleaning at my place :-)

Offline

#15 2012-01-21 16:45:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,626
Website

Re: Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

Right, 'spit' .... if you have to clean your monitor that often, perhaps you're visiting those other sites a bit too often.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB