You are not logged in.

#1 2010-08-25 00:03:55

stevestark
Member
Registered: 2010-08-08
Posts: 25

[SOLVED] pacman upgrade and install errors

i am trying to upgrade pacman and i get an error
error: cannot resolve "openssl>=1.0.0", a dependancy of "libarchive"
openssl 1.0.0 is installed on system

Last edited by stevestark (2010-08-27 23:44:09)

Offline

#2 2010-08-25 00:13:31

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

Re: [SOLVED] pacman upgrade and install errors

What command are you running exactly? Maybe the problem is with the versioned dependency - the program doesn't like the '>' sign.

Offline

#3 2010-08-25 01:25:39

stevestark
Member
Registered: 2010-08-08
Posts: 25

Re: [SOLVED] pacman upgrade and install errors

pacman -Syu is the command. it asks if i want to install a newer version of pacman and i say yes and i get that error

i also get another error when trying to install any package. any package below is the package name i am trying to install. for example pacman -S alsa-utils will give the following error.

first it downloads the package without any error then it begins the install and gives the error below

error while reading package (any package) unreconized archive format: invalid or incomplete multibyte or wide charator

error failed to commit transaction (libarchive error)

Last edited by stevestark (2010-08-25 01:31:00)

Offline

#4 2010-08-25 01:45:28

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] pacman upgrade and install errors

You can manually (re)install pacman and xz by untaring it to root, check the pacman wiki page. Or you use a more recent iso to install.

edit: sorry, xz can be normally installed directly with -U. for the openssl error, there have been some post about in the past.

Last edited by hokasch (2010-08-25 01:47:30)

Offline

#5 2010-08-25 01:53:22

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

Re: [SOLVED] pacman upgrade and install errors

I'm not sure (it's very late / early here) but you can try this https://bbs.archlinux.org/viewtopic.php?id=95007

Offline

#6 2010-08-25 02:28:20

stevestark
Member
Registered: 2010-08-08
Posts: 25

Re: [SOLVED] pacman upgrade and install errors

hokasch wrote:

You can manually (re)install pacman and xz by untaring it to root, check the pacman wiki page. Or you use a more recent iso to install.

edit: sorry, xz can be normally installed directly with -U. for the openssl error, there have been some post about in the past.

pacman -U package name give the error cannot open package name

Offline

#7 2010-08-25 03:37:52

stevestark
Member
Registered: 2010-08-08
Posts: 25

Re: [SOLVED] pacman upgrade and install errors

karol wrote:

I'm not sure (it's very late / early here) but you can try this https://bbs.archlinux.org/viewtopic.php?id=95007

that link did not work but thankyou anyways. the bash file might be too old and i cant upgrade it or know how to unzip it to determine if bash was why i was getting so many errors.

whats the command to unzip a package?

Last edited by stevestark (2010-08-25 05:09:18)

Offline

#8 2010-08-25 10:21:49

absolutevoid
Member
From: Keralam, India
Registered: 2009-08-12
Posts: 78
Website

Re: [SOLVED] pacman upgrade and install errors

stevestark wrote:

whats the command to unzip a package?

Append this code to your .bashrc

extract () {
    for archive in $*; do
        if [ -f $archive ] ; then
            case $archive in
                *.tar.bz2)   tar xvjf $archive    ;;
                *.tar.gz)    tar xvzf $archive    ;;
                *.tar.xz)    tar xvJf $archive    ;;
                *.bz2)       bunzip2 $archive     ;;
                *.rar)       rar x $archive       ;;
                *.gz)        gunzip $archive      ;;
                *.tar)       tar xvf $archive     ;;
                *.tbz2)      tar xvjf $archive    ;;
                *.tgz)       tar xvzf $archive    ;;
                *.txz)       tar xvJf $archive     ;;
                *.zip)       unzip $archive       ;;
                *.Z)         uncompress $archive  ;;
                *.7z)        7z x $archive        ;;
                *)           echo "don't know how to extract '$archive'..." ;;
            esac
        else
            echo "'$archive' is not a valid file!"
        fi
    done
}

I got this code from an Arch linux forum posting some time before. Unfortunately, I don't have a link to it. Extremely sorry to the original contributor. I have added uncompress commands for the new .tar.xz format, Arch packages use and .txz format that slackware uses.

Now in commandline, type

$ extract </path-to-filename/filename.extension>

example:

$ extract ~/username/Downloads/amarok-2.3.1-1-x86_64.pkg.tar.xz

Everything void is absolute and everything absolute is void.

Offline

#9 2010-08-25 11:05:16

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: [SOLVED] pacman upgrade and install errors

or just use bsdtar xf <file> ;-) This will extract all compressed files libarchive knows about.

Offline

#10 2010-08-25 12:02:57

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

Re: [SOLVED] pacman upgrade and install errors

stevestark wrote:

whats the command to unzip a package?

https://bbs.archlinux.org/viewtopic.php … 00#p557500

Offline

#11 2010-08-26 01:57:19

stevestark
Member
Registered: 2010-08-08
Posts: 25

Re: [SOLVED] pacman upgrade and install errors

what directory is .bashrc in?

Offline

#12 2010-08-26 03:20:49

absolutevoid
Member
From: Keralam, India
Registered: 2009-08-12
Posts: 78
Website

Re: [SOLVED] pacman upgrade and install errors

stevestark wrote:

what directory is .bashrc in?

Both in Roots and User's ~/ whether you intend it system wide or for that particular user only.


Everything void is absolute and everything absolute is void.

Offline

#13 2010-08-26 03:37:06

stevestark
Member
Registered: 2010-08-08
Posts: 25

Re: [SOLVED] pacman upgrade and install errors

absolutevoid wrote:
stevestark wrote:

what directory is .bashrc in?

Both in Roots and User's ~/ whether you intend it system wide or for that particular user only.

i did not have a .bashrc file at /home but i copyed your .bashrc to /home then ran pacman -S package and it begin to download (i verifyed that the package was in the pacman cache). then it begin the install and started to extract the package, i got the same old error below...

error while reading package (any package) unreconized archive format: invalid or incomplete multibyte or wide charator. error failed to commit transaction (libarchive error)

i ran bsdtar xf package and got the error...
failed to set default locale.

Last edited by stevestark (2010-08-26 03:40:04)

Offline

#14 2010-08-26 10:48:27

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

Re: [SOLVED] pacman upgrade and install errors

stevestark wrote:
karol wrote:

I'm not sure (it's very late / early here) but you can try this https://bbs.archlinux.org/viewtopic.php?id=95007

that link did not work but thankyou anyways. the bash file might be too old and i cant upgrade it or know how to unzip it to determine if bash was why i was getting so many errors.

whats the command to unzip a package?

Just curious, what exactly didn't work - any errors? Did you 'chmod +x' to make the script executable?

Offline

#15 2010-08-26 17:22:32

Doehni
Member
From: Germany
Registered: 2007-05-19
Posts: 175

Re: [SOLVED] pacman upgrade and install errors

stevestark wrote:
absolutevoid wrote:
stevestark wrote:

what directory is .bashrc in?

Both in Roots and User's ~/ whether you intend it system wide or for that particular user only.

i did not have a .bashrc file at /home but i copyed your .bashrc to /home then ran pacman -S package and it begin to download (i verifyed that the package was in the pacman cache). then it begin the install and started to extract the package, i got the same old error below...

error while reading package (any package) unreconized archive format: invalid or incomplete multibyte or wide charator. error failed to commit transaction (libarchive error)

i ran bsdtar xf package and got the error...
failed to set default locale.

Did you copy the .bashrc file to /home/ or /home/$Username ?
It has to be in /home/$Username

Offline

#16 2010-08-26 23:08:16

stevestark
Member
Registered: 2010-08-08
Posts: 25

Re: [SOLVED] pacman upgrade and install errors

karol wrote:
stevestark wrote:
karol wrote:

I'm not sure (it's very late / early here) but you can try this https://bbs.archlinux.org/viewtopic.php?id=95007

that link did not work but thankyou anyways. the bash file might be too old and i cant upgrade it or know how to unzip it to determine if bash was why i was getting so many errors.

whats the command to unzip a package?

Just curious, what exactly didn't work - any errors? Did you 'chmod +x' to make the script executable?

when i typed in script.sh, nothing happened. no errors. i dont think 2008 iso is able to run .sh or maybe i am doing something wrong.

Offline

#17 2010-08-26 23:12:04

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] pacman upgrade and install errors

You are doing something wrong. Also the script is just a template, you will have to adjust it with current package versions. karol asked about making the script executable, did you do it?
Anyway, you don't need the script, you can just do all the steps manually. Manually download the mentioned packages (openssl libarchive libfetch pacman and xz) and extract them one by one like in the script:

sudo tar -xvpf ${pkgname} -C / --exclude .PKGINFO --exclude .INSTALL

then forcefully reinstall them with pacman.

p.s.: you will need to start with xz if one of the other packages have been switched to xz compression in the meantime (don't know if they have).

Last edited by hokasch (2010-08-26 23:18:49)

Offline

#18 2010-08-26 23:14:46

stevestark
Member
Registered: 2010-08-08
Posts: 25

Re: [SOLVED] pacman upgrade and install errors

Doehni wrote:

Did you copy the .bashrc file to /home/ or /home/$Username ?
It has to be in /home/$Username

/home/$Username. i got 1 error logging into username. bash: extract is unknown.

Offline

#19 2010-08-26 23:19:24

stevestark
Member
Registered: 2010-08-08
Posts: 25

Re: [SOLVED] pacman upgrade and install errors

hokasch wrote:

You are doing something wrong. Also the script is just a template, you will have to adjust it with current package versions. karol asked about making the script executable, did you do it?
Anyway, you don't need the script, you can just do all the steps manually. Manually download the mentioned packages (openssl libarchive libfetch pacman and xz) and extract them one by one like in the script:

sudo tar -xvpf ${pkgname} -C / --exclude .PKGINFO --exclude .INSTALL

then forcefully reinstall them with pacman.

i forgot about making the script executable. do i do something like chmod +x script.sh

Last edited by stevestark (2010-08-27 23:45:09)

Offline

Board footer

Powered by FluxBB