You are not logged in.

#1 2019-09-10 09:18:57

11235
Member
Registered: 2019-09-10
Posts: 7

[SOLVED] Problem in synchronizing package databases while installing

Hi,

I'm trying to install arch_2019_09 on my computer.
I have a script which follows arch wiki instructions.
Here are the first lines of my script.

#!/bin/sh

device_name=nvme0n1
partition_prefix=nvme0n1p

# Wiping the hard drive
sgdisk -Z /dev/"$device_name"

# Partitioning
sgdisk /dev/"$device_name" --new=1:0:+1G  --typecode=1:ef00 --change-name=1:boot
sgdisk /dev/"$device_name" --new=2:0:+10G --typecode=2:8200 --change-name=2:swap
sgdisk /dev/"$device_name" --new=3:0:+20G --typecode=3:8304 --change-name=3:root
sgdisk /dev/"$device_name" --new=4:0:0    --typecode=4:8302 --change-name=4:home

# Formatting
mkfs.fat -F32 /dev/"$partition_prefix"1
mkswap /dev/"$partition_prefix"2; swapon /dev/"$partition_prefix"2
mkfs.ext4 -F -F /dev/"$partition_prefix"3
mkfs.ext4 -F -F /dev/"$partition_prefix"4

# Mounting
mount /dev/"$partition_prefix"3 /mnt
mkdir /mnt/boot
mkdir /mnt/home
mount /dev/"$partition_prefix"1 /mnt/boot
mount /dev/"$partition_prefix"4 /mnt/home

# Synchronizing databases
pacman -Syu --noconfirm

The problem is with the last line. I don't know how to fix package databases synchronization.
Here is the output of the script.

GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Creating new GPT entries in memory.
Setting name!
partNum is 0
The operation has completed successfully.
Setting name!
partNum is 1
The operation has completed successfully.
Setting name!
partNum is 2
The operation has completed successfully.
Setting name!
partNum is 3
The operation has completed successfully.
mkfs.fat 4.1 (2017-01-24)
mkswap: /dev/nvme0n1p2: warning: wiping old swap signature.
Setting up swapspace version 1, size = 10 GiB (10737414144 bytes)
no label, UUID=e54c40f7-9f5c-4fb2-b82a-46316c795937
mke2fs 1.45.3 (14-Jul-2019)
Discarding device blocks:    4096/5242880^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H               ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^Hdone    $
Creating filesystem with 5242880 4k blocks and 1310720 inodes
Filesystem UUID: 9758c02f-da05-4e46-8c29-67967826f65d
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

Allocating group tables:   0/160^H^H^H^H^H^H^H       ^H^H^H^H^H^H^Hdone
Writing inode tables:   0/160^H^H^H^H^H^H^H       ^H^H^H^H^H^H^Hdone
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:   0/160^H^H^H^H^H^H^H       ^H^H^H^H^H^H^Hdone

mke2fs 1.45.3 (14-Jul-2019)
Discarding device blocks:     4096/50481041^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H32509952/50481041^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H$
Creating filesystem with 50481041 4k blocks and 12623872 inodes
Filesystem UUID: c6316838-11e1-4d50-8cd8-d74a07d6cce0
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables:    0/1541^H^H^H^H^H^H^H^H^H         ^H^H^H^H^H^H^H^H^Hdone
Writing inode tables:    0/1541^H^H^H^H^H^H^H^H^H         ^H^H^H^H^H^H^H^H^Hdone
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information:    0/1541^H^H^H^H^H^H^H^H^H         ^H^H^H^H^H^H^H^H^Hdone
:: Synchronizing package databases...
downloading core.db...
downloading extra.db...
downloading community.db...
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (27) bind-tools-9.14.5-1  broadcom-wl-6.30.223.271-129  ca-certificates-mozilla-3.46-1  cryptsetup-2.2.1-1  ddrescu$

Total Download Size:    98.25 MiB
Total Installed Size:  187.06 MiB
Net Upgrade Size:        0.74 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
downloading findutils-4.7.0-1-x86_64.pkg.tar.xz...
downloading libgcrypt-1.8.5-1-x86_64.pkg.tar.xz...
downloading systemd-libs-243.0-1-x86_64.pkg.tar.xz...
downloading device-mapper-2.02.186-2-x86_64.pkg.tar.xz...
downloading cryptsetup-2.2.1-1-x86_64.pkg.tar.xz...
downloading hwids-20190818-1-any.pkg.tar.xz...
downloading kbd-2.2.0-3-x86_64.pkg.tar.xz...
downloading systemd-243.0-1-x86_64.pkg.tar.xz...
downloading linux-5.2.13.arch1-1-x86_64.pkg.tar.xz...
downloading ca-certificates-mozilla-3.46-1-x86_64.pkg.tar.xz...
downloading glib2-2.62.0-1-x86_64.pkg.tar.xz...
downloading libevent-2.1.11-2-x86_64.pkg.tar.xz...
downloading libsecret-0.19.1-1-x86_64.pkg.tar.xz...
downloading logrotate-3.15.1-1-x86_64.pkg.tar.xz...
downloading lvm2-2.02.186-2-x86_64.pkg.tar.xz...
downloading nilfs-utils-2.2.8-1-x86_64.pkg.tar.xz...
downloading nss-3.46-1-x86_64.pkg.tar.xz...
downloading systemd-sysvcompat-243.0-1-x86_64.pkg.tar.xz...
downloading usbutils-012-1-x86_64.pkg.tar.xz...
downloading bind-tools-9.14.5-1-x86_64.pkg.tar.xz...
downloading ddrescue-1.24-2-x86_64.pkg.tar.xz...
downloading haveged-1.9.6-3-x86_64.pkg.tar.xz...
downloading libjpeg-turbo-2.0.3-1-x86_64.pkg.tar.xz...
downloading vim-runtime-8.1.1968-1-x86_64.pkg.tar.xz...
downloading vim-8.1.1968-1-x86_64.pkg.tar.xz...
downloading broadcom-wl-6.30.223.271-129-x86_64.pkg.tar.xz...
downloading iwd-0.20-3-x86_64.pkg.tar.xz...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
upgrading bind-tools...
upgrading findutils...
upgrading libgcrypt...
upgrading systemd-libs...
upgrading device-mapper...
upgrading cryptsetup...
pgrading hwids...
upgrading kbd...
upgrading systemd...
upgrading linux...
upgrading broadcom-wl...
upgrading ca-certificates-mozilla...
upgrading ddrescue...
upgrading glib2...
error: could not extract /usr/share/locale/sk/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/sl/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/sq/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/sr/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/sr@ije/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/sr@latin/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/sv/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/ta/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/te/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/tg/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/th/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/tl/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/tr/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/tt/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/ug/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/uk/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/vi/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/wa/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/xh/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/yi/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/zh_CN/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/zh_HK/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/locale/zh_TW/LC_MESSAGES/glib20.mo (Write failed)
error: could not extract /usr/share/man/man1/gapplication.1.gz (Write failed)
error: could not extract /usr/share/man/man1/gdbus-codegen.1.gz (Write failed)
error: could not extract /usr/share/man/man1/gdbus.1.gz (Write failed)
error: could not extract /usr/share/man/man1/gio-querymodules.1.gz (Write failed)
error: could not extract /usr/share/man/man1/gio.1.gz (Write failed)
error: could not extract /usr/share/man/man1/glib-compile-resources.1.gz (Write failed)
error: could not extract /usr/share/man/man1/glib-compile-schemas.1.gz (Write failed)
error: could not extract /usr/share/man/man1/glib-genmarshal.1.gz (Write failed)
error: could not extract /usr/share/man/man1/glib-gettextize.1.gz (Write failed)
error: could not extract /usr/share/man/man1/glib-mkenums.1.gz (Write failed)
error: could not extract /usr/share/man/man1/gobject-query.1.gz (Write failed)
error: could not extract /usr/share/man/man1/gresource.1.gz (Write failed)
error: could not extract /usr/share/man/man1/gsettings.1.gz (Write failed)
error: could not extract /usr/share/man/man1/gtester-report.1.gz (Write failed)
error: could not extract /usr/share/man/man1/gtester.1.gz (Write failed)
error: problem occurred while upgrading glib2
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded.

Any help would be appreciated...

Last edited by 11235 (2019-09-10 11:33:00)

Offline

#2 2019-09-10 09:23:54

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Problem in synchronizing package databases while installing

Why do you want to run that pacman command? It will have no effect on the system you are about to install.

It's erroring out because there's no room left on the live filesystem - which is limited to half of your RAM.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2019-09-10 09:55:02

11235
Member
Registered: 2019-09-10
Posts: 7

Re: [SOLVED] Problem in synchronizing package databases while installing

Thanks for your fast reply.
I run that pacman command because the next thing is to rank mirrors and I use rankmirrors from pacman-contrib.
I have 8GB ram. You say that if I had more ram the problem would be solved ?

Offline

#4 2019-09-10 10:02:31

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] Problem in synchronizing package databases while installing

11235 wrote:

I have a script which follows arch wiki instructions.
[...]
pacman -Syu --noconfirm

Please link to the part of the installation guide which says to run a system upgrade on the live system.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2019-09-10 10:09:42

11235
Member
Registered: 2019-09-10
Posts: 7

Re: [SOLVED] Problem in synchronizing package databases while installing

I guess I have to try and run without it...

Offline

#6 2019-09-10 11:36:44

11235
Member
Registered: 2019-09-10
Posts: 7

Re: [SOLVED] Problem in synchronizing package databases while installing

Thanks for letting me realize that running

 pacman -Syu

on a live filesystem is not a good idea...

Offline

#7 2019-09-10 12:44:04

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

Re: [SOLVED] Problem in synchronizing package databases while installing

11235 wrote:

I run that pacman command because the next thing is to rank mirrors and I use rankmirrors from pacman-contrib.

But those two things have nothing to do with one another.  If you really want to install rankmirrors, you can install rankmirrors.  `pacman -Syu` is not the command to accomplish this.

Really though, just pick one good mirror for the initial install (as directed in the actual installation guide) then install rankmirrors on your new system.


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

Offline

#8 2019-09-10 13:07:14

11235
Member
Registered: 2019-09-10
Posts: 7

Re: [SOLVED] Problem in synchronizing package databases while installing

Another thing I understood is that I don't have to rank mirrors at that stage so the problem became non existent.

I thought that in order to install pacman-contrib I have to run a system upgrade.

Offline

#9 2019-09-10 13:43:28

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] Problem in synchronizing package databases while installing

11235 wrote:

I thought that in order to install pacman-contrib I have to run a system upgrade.

To install a package as part of the initial installation add it to the package list passed to pacstrap.
After installation Pacman#Installing_packages.

Offline

#10 2019-09-10 16:13:18

11235
Member
Registered: 2019-09-10
Posts: 7

Re: [SOLVED] Problem in synchronizing package databases while installing

Didn't know that, thanks...

Offline

#11 2019-09-10 16:34:38

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] Problem in synchronizing package databases while installing

Then you aren't reading the Installation Guide...

There's nothing wrong with wanting to scratch your own itch and make a script to e.g. deploy Arch to many machines, but please don't lie to us saying you're following the wiki when you clearly aren't.

Read the wiki, install Arch a few times to get used to the procedure, then write your script.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#12 2019-09-11 09:03:21

11235
Member
Registered: 2019-09-10
Posts: 7

Re: [SOLVED] Problem in synchronizing package databases while installing

I think you also need some guidance in reading the wiki, especially this part...

Offline

#13 2019-09-11 12:01:10

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] Problem in synchronizing package databases while installing

I have been as respectful as I can in the face of the evidence. Follow my advice or don't, but don't waste our time if you decide to go off piste and ignore the community-provided documentation.

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#14 2019-09-11 14:18:31

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] Problem in synchronizing package databases while installing

11235:

I might add:  https://wiki.archlinux.org/index.php/Co … _the_staff
I have read this thread several times and, although you may not like what was said, WorMzy was not, in any way, disrespectful to you in this thread.  Indeed, while WorMzy is generally direct, I cannot recall any situation where they have been less than respectful in response to anyone one these forums (With the possible exception of spammers).


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB