You are not logged in.

#1 2008-01-16 15:59:39

deepnote
Member
Registered: 2008-01-02
Posts: 21

pacman installing already installed dependecies

Hi,

when I install some new package, pacman wants some already installed programs and then he failed, because files are already in system. Only option si to install with -f.

Example:

yaourt octave
1 extra/octave 2.1.73-4
    Octave is a high-level language, primarily intended for numerical computations.
2 extra/texmacs 1.0.6.12-1
    GNU TeXmacs is a free scientific text editor, which was both inspired by TeX and GNU Emacs. WYSIWYG editor TeX-fonts and CAS-interface (Giac, GTybalt, Macaulay 2, Maxima, Octave, Pari, Qcl, R and Yacas) in one.
3 community/python-numarray 1.5.2-2
    Provides array manipulation and computational capabilities similar to those found in IDL, Matlab, or Octave.
4 aur/euler 1.61.0-4
    Mathematical programming environment like MatLab or Octave
5 aur/koctave3 0.65-3
    A KDE GUI for octave
6 aur/octave-audio 1.0.1-1
    Audio recording, processing and playing tools
7 aur/octave-devel 2.9.19-1
    Octave is a high-level language, primarily intended for numerical computations.
8 aur/octave-forge 2006.03.17-4
    A collection of contributed packages for GNU Octave
9 aur/octave-workshop 0.10-1
    Octave Workshop is an integrated development environment for the GNU Octave programming language, the open-source programming language for scientific computing and engineering.
10 aur/octave3 3.0.0-3
    A high-level language, primarily intended for numerical computations. GNU Software equivalent/compatible to MATLAB. Octave 3.0 is significantly different from Octave 2.1.x, particularly with regard to graphics, path handling, and built-in variables.
11 aur/octaveforge-cvs 20070420-1
    custom scripts, functions and extensions for GNU Octave
12 aur/octplot 0.3.5-1
    OctPlot is a handle graphics package for Octave, the free alternative to matlab.
==>  Enter n° (separated by blanks, or a range) of packages to be installed
     Example:   '1 6 7 8 9'   or   '1 6-9'
==>   ----------------------------------------------
==>1
resolving dependencies...
warning: dependency cycle detected:
warning: bash will be installed before its glibc dependency
warning: dependency cycle detected:
warning: readline will be installed before its glibc dependency
warning: dependency cycle detected:
warning: ncurses will be installed before its glibc dependency
looking for inter-conflicts...

Targets: ncurses-5.6-6  readline-5.2-7  bash-3.2.033-1  kernel-headers-2.6.23.1-2  tzdata-2007k-1  glibc-2.7-7  binutils-2.18-5  gcc-libs-4.2.2-3  gcc-4.2.2-4
         gmp-4.2.2-2  mpfr-2.3.0-1  gcc-fortran-4.2.2-1  fftw-3.1.2-1  blas-19980702-3.1  octave-2.1.73-4

Total Download Size:    13.40 MB
Total Installed Size:   47.05 MB

Proceed with installation? [Y/n]

ends with

....
fftw: /usr/lib/libfftw3f.so exists in filesystem
fftw: /usr/lib/libfftw3f.so.3 exists in filesystem
fftw: /usr/lib/libfftw3f.so.3.1.2 exists in filesystem
fftw: /usr/lib/pkgconfig/fftw3.pc exists in filesystem
fftw: /usr/lib/pkgconfig/fftw3f.pc exists in filesystem
fftw: /usr/man/man1/fftw-wisdom-to-conf.1.gz exists in filesystem
fftw: /usr/man/man1/fftw-wisdom.1.gz exists in filesystem
fftw: /usr/man/man1/fftwf-wisdom.1.gz exists in filesystem
blas: /usr/lib/libblas.a exists in filesystem
blas: /usr/lib/libblas.so exists in filesystem
blas: /usr/lib/libblas.so.3 exists in filesystem
blas: /usr/lib/libblas.so.3.0.3 exists in filesystem
blas: /usr/share/licenses/custom/blas/license.txt exists in filesystem
Errors occurred, no packages were upgraded.

pacman.conf

#
# /etc/pacman.conf
#
# See the pacman manpage for option 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/sync
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

#
# 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
#
[testing]
Include = /etc/pacman.d/mirrorlist

[core]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

#[unstable]
# Add your preferred servers here, they will be used first
#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


[kdemod]
Server = http://kdemod.ath.cx/repo/current/x86_64

[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64

HELP sad


Asus A6M-Q050

Offline

#2 2008-01-16 16:50:25

elgatofelix
Member
From: Chile
Registered: 2007-07-03
Posts: 137

Re: pacman installing already installed dependecies

deepnote wrote:

Only option si to install with -f.

does it work with -f flag  ?

or deinstall the packages with: pacman [the package u wanna install] -Rsc

Last edited by elgatofelix (2008-01-16 16:55:39)


Are u listening?

Offline

#3 2008-01-16 16:56:13

deepnote
Member
Registered: 2008-01-02
Posts: 21

Re: pacman installing already installed dependecies

yes, but sometimes it wants to install kernel and everything => config files are renamed to .pacorig


Asus A6M-Q050

Offline

#4 2008-01-16 18:39:08

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,223
Website

Re: pacman installing already installed dependecies

I have had the same problem, but both times an install went AWOL and this is the result (I probably closed my terminal before the end of pacman).

Manually removing the files in the list worked for me, so that's a guarantee to make it work again.

Zl.

Offline

#5 2008-01-17 11:38:18

deepnote
Member
Registered: 2008-01-02
Posts: 21

Re: pacman installing already installed dependecies

I already tried to reinstall, but it did not help. If I have to remove them, I`ll have to remove all packages. sad

Anyway, is this OK? (I have more explicitly installed packages)

sudo pacman -Qe
glibc 2.7-7
gnuplot 4.2.2-1
nvidia 169.07-1
nvidia-utils 169.07-1
octave 2.1.73-4
opera 9.50-0.13
powertop 1.9-1
smartmontools 5.37-1


Asus A6M-Q050

Offline

#6 2008-01-17 15:19:34

deepnote
Member
Registered: 2008-01-02
Posts: 21

Re: pacman installing already installed dependecies

And maybe
"pacman -Syu" always says, that all packages are updated, but they`re not.


Asus A6M-Q050

Offline

#7 2008-02-01 14:07:22

print
Member
Registered: 2007-02-27
Posts: 174

Re: pacman installing already installed dependecies

Why is pacman appending .pacorig to my /etc/passwd and /etc/group files, and rewriting those with default files?  This is dangerous behavior, and I'm glad I noticed it before I rebooted after kernel upgrade or I would have been locked out and I would have had to chroot to my system back.

Can somebody explain this seemingly-new pacman behavior?  AFAIK this is a new "feature."

Last edited by print (2008-02-01 14:07:47)


% whereis whatis whence which whoami whois who

Offline

#8 2008-02-01 16:45:32

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: pacman installing already installed dependecies

print wrote:

Why is pacman appending .pacorig to my /etc/passwd and /etc/group files, and rewriting those with default files?  This is dangerous behavior, and I'm glad I noticed it before I rebooted after kernel upgrade or I would have been locked out and I would have had to chroot to my system back.

Can somebody explain this seemingly-new pacman behavior?  AFAIK this is a new "feature."

pacorig are not a new feature, and should only appear when you are installing a new package for the first time (so not while upgrading), and a config file like passwd or group was already present on the filesystem.
/etc/group and /etc/passwd should NOT be on the filesystem before the "filesystem" package is installed.

$ pacman -Qo /etc/passwd /etc/group
/etc/passwd is owned by filesystem 2007.11-6
/etc/group is owned by filesystem 2007.11-6

So you should not get any .pacorig files. There was something wrong on your system..
Actually, I have been using Arch for months, and I never got any .pacorig files

PS : Maybe on your system, pacman didn't know to which package these two files belonged, and so it complained about file conflicts, and you had to use the -f flag?
Note that the -f flag should always be used with care, and as little as possible. So be very careful when you use it (for example because of config files being renamed to pacorig, but other stuff like that too).

Last edited by shining (2008-02-01 16:52:18)


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#9 2008-02-01 16:50:11

print
Member
Registered: 2007-02-27
Posts: 174

Re: pacman installing already installed dependecies

Actually I think this was related to removing the testing repo from pacman.conf.  I then installed shadow from current or stable, whichever it is in.  Is there a cleaner/safer way to downgrade testing packages?


% whereis whatis whence which whoami whois who

Offline

#10 2008-02-01 17:05:27

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: pacman installing already installed dependecies

print wrote:

Actually I think this was related to removing the testing repo from pacman.conf.  I then installed shadow from current or stable, whichever it is in.  Is there a cleaner/safer way to downgrade testing packages?

I am not sure what this has to do with shadow. Did this package ever own passwd or group files?
I think it has always been in filesystem (at least it is for a while).


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#11 2008-02-01 18:17:50

print
Member
Registered: 2007-02-27
Posts: 174

Re: pacman installing already installed dependecies

That could have been it too


% whereis whatis whence which whoami whois who

Offline

Board footer

Powered by FluxBB