You are not logged in.

#1 2010-10-09 11:03:57

since1992
Member
Registered: 2010-09-13
Posts: 25

pacman cannot remove installed package [SOLVED]

I am not aware of pacman. I just started to use Arch Linux last month.
I know two command

     sudo pacman -S packagename
     sudo pacman -Rsn packagename

Today, I installed mpg123 package . I cannot remove the pacakge.


- Installation

$ sudo pacman -S mpg321
Password: 
warning: provider package was selected (mpg123 provides mpg321)
resolving dependencies...
looking for inter-conflicts...

Targets (1): mpg123-1.12.3-1

Total Download Size:    0.17 MB
Total Installed Size:   0.57 MB

Proceed with installation? [Y/n] 
:: Retrieving packages from extra...
error: failed retrieving file 'mpg123-1.12.3-1-x86_64.pkg.tar.xz' from mirrors.163.com : Connection timed out
error: failed retrieving file 'mpg123-1.12.3-1-x86_64.pkg.tar.xz' from mirror.lupaworld.com : File unavailable (e.g., file not found, no access)
 mpg123-1.12.3-1-x86_64  176.5K  295.3K/s 00:00:01 [######################] 100%
checking package integrity...
(1/1) checking for file conflicts                  [######################] 100%
(1/1) installing mpg123                            [######################] 100%
Optional dependencies for mpg123
    esound: for additional audio support
    sdl: for additional audio support

- Removing

$ sudo pacman -Rsn mpg321
error: 'mpg321': could not find or read package

- pacman.conf

[options]
HoldPkg     = pacman glibc
SyncFirst   = pacman
Architecture = x86_64

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

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

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

Anyone knows why this happens? Thank you.

Last edited by since1992 (2010-10-09 11:17:19)

Offline

#2 2010-10-09 11:06:15

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: pacman cannot remove installed package [SOLVED]

warning: provider package was selected (mpg123 provides mpg321)


Targets (1): mpg123-1.12.3-1

so you need to do pacman -Rs mpg123


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-10-09 11:16:48

since1992
Member
Registered: 2010-09-13
Posts: 25

Re: pacman cannot remove installed package [SOLVED]

Thank you so much. I was a dumb... Even if I ask pacman to install mpg321, pacman installed mpg123.

Offline

#4 2010-10-09 11:19:07

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: pacman cannot remove installed package [SOLVED]

since1992 wrote:

Thank you so much. I was a dumb... Even if I ask pacman to install mpg321, pacman installed mpg123.

because that package has provides mpg321.

Repository     : extra
Name           : mpg123
Version        : 1.12.3-1
URL            : http://sourceforge.net/projects/mpg123
Licenses       : GPL2  LGPL2.1
Groups         : None
Provides       : mpg321
Depends On     : glibc  libtool  alsa-lib
Optional Deps  : esound: for additional audio support
                 sdl: for additional audio support
Conflicts With : mpg321
Replaces       : mpg321
Download Size  : 176.46 K
Installed Size : 584.00 K


Give what you have. To someone, it may be better than you dare to think.

Offline

Board footer

Powered by FluxBB