Türkiye
Az konuş, çok çalış..

Forum

Bildirimler
Tümünü temizle

[ Çözüldü] Pacman da Aldığım Hata

16 Yazılar
4 Üyeler
0 Reactions
4,916 Görüntüleme
(@karizmaxi)
Gönderiler: 31
Eminent Member
Konu başlatıcı
 
[karizmaxi@k ~]$ su
Parola: 
[root@k karizmaxi]# pacman -Syy
hata: ayar dosyası /etc/pacman.conf, satır 1: Tüm direktifler bir bölüme ait olmalı.
 
Gönderildi : 25/04/2013 7:53 pm
(@yfdogan)
Gönderiler: 615
Honorable Member
 

Benim ayarlarla karşılaştırın:
/etc/pacman.d/mirrorlist

##
## Manjaro Linux repository mirrorlist
## Generated on 26 Nisan 2013
## Use pacman-mirrors to modify
##


## Location: United_Kingdom
## Time:     0.703
Server =  http://repo.manjaro.org.uk/stable/$repo/$arch 

## Location: Germany
## Time:     0.753
Server =  http://ftp.tu-chemnitz.de/pub/linux/manjaro/stable/$repo/$arch 

## Location: Netherlands
## Time:     0.765
Server =  http://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable/$repo/$arch 

## Location: Germany
## Time:     0.788
Server =  http://mirror-europe1.vinzv.de/manjaro/repo/stable/$repo/$arch 

## Location: Ireland
## Time:     1.040
Server =  http://ftp.heanet.ie/mirrors/manjaro/stable/$repo/$arch 

## Location: France
## Time:     1.065
Server =  http://manjarolinux.polymorf.fr/stable/$repo/$arch 

## Location: Greece
## Time:     1.101
Server =  http://ftp.cc.uoc.gr/mirrors/linux/manjaro/stable/$repo/$arch 

## Location: United_States
## Time:     1.252
Server =  http://mirror.dacentec.com/manjaro/stable/$repo/$arch 

## Location: Netherlands
## Time:     2.524
Server = ftp://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable/$repo/$arch

## Location: Ireland
## Time:     2.608
Server = ftp://ftp.heanet.ie/mirrors/manjaro/stable/$repo/$arch

## Location: Germany
## Time:     3.073
Server =  http://ftp.halifax.rwth-aachen.de/manjaro/stable/$repo/$arch 

/etc/pacman-mirrors.conf

##
## /etc/pacman-mirrors.conf
##

## Branch Pacman should use (stable, testing, unstable)
Branch=stable

## Generation method
## 1) rank   - rank mirrors depending on their access time
## 2) random - randomly generate the output mirrorlist
Method=rank

## Specify to use only mirrors from a specific country
## Disabled by default
# OnlyCountry=Germany

## Input mirrorlist directory
MirrorlistsDir="/etc/pacman.d/mirrors"

## Output mirrorlist
OutputMirrorlist="/etc/pacman.d/mirrorlist"

/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
#GPGDir      = /etc/pacman.d/gnupg/
HoldPkg     = pacman glibc manjaro-system
# If upgrades are available for these packages they will be asked for first
SyncFirst   = manjaro-system pacman
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

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

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# 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.
#

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

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

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

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

[multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
 
 
Gönderildi : 25/04/2013 8:16 pm
(@cumali)
Gönderiler: 1770
Noble Member
 

@karizmaxi, sanırım pacman.conf dosya içeriginde degişim yaparken kopyala-yapıştırda hatalı şekilde uygulamışsınız. Güncelleme sorunları ve çözümü başlıklı konuyu yeniden gözden geçirip işlemi yeniden deneyin. http://archman.org/forum/viewtopic.php?f=6&t=285#p1741

@YFDogan, verdigin pacman.conf içerigi 64-bit sistemlere ait. Aynı dosyayı 32-bit sistem kullanan biri degişim yaparsa hatalı olur. Bu ufak ayrıntı gözünden kaçmış olmalı.

 
Gönderildi : 26/04/2013 3:01 am
(@decent)
Gönderiler: 804
Prominent Member
 

... Aynı dosyayı 32-bit sistem kullanan biri degişim yaparsa hatalı olur.
...

[blink]Hiçbir şey olmaz.[/blink]

[c]/etc/pacman.conf[/c] dosyasındaki [c]Architecture = auto[/c] satırı o hatanın önüne geçmek için var.

Ayrıca, 32 bit sistemlerde aşağıdaki satırları kapatmak yeterli, diğer her şey aynı 🙂

#[multilib]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist
 
Gönderildi : 26/04/2013 7:17 am
(@karizmaxi)
Gönderiler: 31
Eminent Member
Konu başlatıcı
 

Herkese çok teşekkür ediyorum ancak aynı işlemi daha önce yaptığımda hiç bir hata vermedi ama şimdi 4 sefer yapmama rağmen hep aynı hatayı veriyor. Bu durum da ne yapmam gerekir?

 
Gönderildi : 26/04/2013 11:25 am
(@decent)
Gönderiler: 804
Prominent Member
 

Konu veya sorunla ilgili çıktıları görmek gerekir.

 
Gönderildi : 26/04/2013 5:52 pm
(@karizmaxi)
Gönderiler: 31
Eminent Member
Konu başlatıcı
 

Konu veya sorunla ilgili çıktıları görmek gerekir.

[karizmaxi@k ~]$ su
Parola: 
[root@k karizmaxi]# pacman
hata: ayar dosyası /etc/pacman.conf, satır 9: Tüm direktifler bir bölüme ait olmalı.
[root@k karizmaxi]# 

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
    #GPGDir      = /etc/pacman.d/gnupg/
    HoldPkg     = pacman glibc manjaro-system
    # If upgrades are available for these packages they will be asked for first
    SyncFirst   = manjaro-system pacman
    #XferCommand = /usr/bin/curl -C - -f %u > %o
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #CleanMethod = KeepInstalled
    Architecture = auto

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

    #NoUpgrade   =
    #NoExtract   =

    # Misc options
    #UseSyslog
    #UseDelta
    #TotalDownload
    CheckSpace
    #VerbosePkgLists

    # By default, pacman accepts packages signed by keys that its local keyring
    # trusts (see pacman-key and its man page), as well as unsigned packages.
    #SigLevel = Optional TrustedOnly

    # NOTE: You must run `pacman-key --init` before first using pacman; the local
    # keyring can then be populated with the keys of all official packages
    # Manjaro Linux supports with `pacman-key --populate archlinux manjaro`.

    #
    # 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.
    #

    [platform-testing]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist

    [extra-testing]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist

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

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

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

Çıktı ve Pacman.conf içeriği bu şekilde ek bilgi lazımsa verebilirim.

 
Gönderildi : 26/04/2013 7:02 pm
(@cumali)
Gönderiler: 1770
Noble Member
 

@karizmaxi, pacman.conf dosya yedegini aldıktan sonra aşağıdaki verdigim ile degişin. Sonrada

#pacman -Syy
#pacman -Syu

komutlarını uygulayın. Hata verirse çıktıyı buraya aktarın.

pacman.conf içerigi (karizmaxi için)

#
# /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
#GPGDir      = /etc/pacman.d/gnupg/
HoldPkg     = pacman glibc manjaro-system
# If upgrades are available for these packages they will be asked for first
SyncFirst   = manjaro-system pacman
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

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

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# 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.
#

[platform-testing]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[extra-testing]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

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

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

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
 
Gönderildi : 26/04/2013 7:30 pm
(@karizmaxi)
Gönderiler: 31
Eminent Member
Konu başlatıcı
 

Cumali abi hata verdi çıktılar şöyle:

[karizmaxi@k ~]$ pacman -Syy
hata: ayar dosyası /etc/pacman.conf, satır 9: Tüm direktifler bir bölüme ait olmalı.
[karizmaxi@k ~]$ pacman -Syu
hata: ayar dosyası /etc/pacman.conf, satır 9: Tüm direktifler bir bölüme ait olmalı.
[karizmaxi@k ~]$ 

Ben bir de bir şey sormak istiyorum Canlı sistemden etc dosyasını komple kopyalasam sonra da pacman.conf ve mirrorlist.conf dosyalarını yeniden düzenlesem sistemin çökme riski olur mu?

 
Gönderildi : 26/04/2013 7:40 pm
(@cumali)
Gönderiler: 1770
Noble Member
 

/etc dizini altında bir sürü yapılandırma dosyaları var. Açıkçası hiç denemedim böyle bir şeyi. Ancak pacman.conf ve mirrorlist dosyalarını kastediyorsan olabilir. Çok özelleştirme yapmadıysan Kde full ve Kde minimalden birini yeniden kurman daha sağlıklı. Zira 64-bit Kde versiyonunu YFDogan özene bezene hazırlayıp sunucuya yükledi. Henüz resmi duyurusu yapılmadı. Ancak 32-bit henüz yok. Onuda fırsat bulursam yarın hazırlayıp sunucuya yüklerim.

 
Gönderildi : 26/04/2013 7:51 pm
(@karizmaxi)
Gönderiler: 31
Eminent Member
Konu başlatıcı
 

Tamam bir de onu deneyim ama Ben KDE'li değil de Cinamon/Gnome'li bir dağıtım istiyorum. Teşekkür ederim yardım eden herkese.

 
Gönderildi : 26/04/2013 7:58 pm
(@cumali)
Gönderiler: 1770
Noble Member
 

Ben Kde kullandığını biliyordum. Onun için yazdım. Önümüzdeki hafta içinde sorun çıkmazsa Cinnamon-Gnome sürümünü inşaallah sunucuya yüklerim. Zira Gnome 3.8 hala unstable depolarında. Gdm sorunları aşılmış degil.

 
Gönderildi : 26/04/2013 8:08 pm
(@yfdogan)
Gönderiler: 615
Honorable Member
 

Grafik yükleme aracında bir sıkıntın var. CLI aracı ile yüklemede sorun yok.

 
Gönderildi : 26/04/2013 8:45 pm
(@karizmaxi)
Gönderiler: 31
Eminent Member
Konu başlatıcı
 

Aynı düzenlemeyi bir kez daha yaptım ve bu sefer oldu. Yardımı dokunan herkese çok teşekkür ediyorum.

 
Gönderildi : 29/04/2013 12:18 pm
(@yfdogan)
Gönderiler: 615
Honorable Member
 

Güle güle kullanın.

 
Gönderildi : 29/04/2013 12:37 pm
Sayfa 1 / 2
Paylaş:
Translate »