You are not logged in.

#1 2016-01-10 17:51:37

abi
Member
Registered: 2014-06-15
Posts: 13

[SOLVED] pacman is not updating repos after snapper undochange

I migrated to btrfs and wanted to test it a little.
So, I created snapshot of /, after I run pacman -Syu to update all packages. 360Mb was downloaded and I found that linux kernel was bumped to 4.3.
Without reboot, I ran snapper undochange and rolled back all alterations.
After reboot, I wanted to repeat package upgrade. pacman didn't found new packages! On repo update sequence it reported that it'is up to date.
So, I have old system and pacman refusing to update repos (it's definitely old as I see lunux kernel 4.2 there).

I have 2 btrfs volumes, one is /, another is /home, so I'm pretty sure /var was rolled back. I don't understand what's happend. Any suggestions? Maybe something left in /home ?

Last edited by abi (2016-01-10 20:28:07)

Offline

#2 2016-01-10 17:55:15

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [SOLVED] pacman is not updating repos after snapper undochange

Do you have any subvolumes?

Offline

#3 2016-01-10 17:57:26

abi
Member
Registered: 2014-06-15
Posts: 13

Re: [SOLVED] pacman is not updating repos after snapper undochange

Yes, I do.

[root@darkstar ~]# btrfs subvolume list /
ID 278 gen 14192 top level 5 path snapshots
ID 307 gen 14226 top level 5 path system
ID 308 gen 14092 top level 307 path var/lib/machines
ID 314 gen 14111 top level 278 path snapshots/1/snapshot
UUID=46653793-24b2-4aab-a8ee-de472ff9b2d9	/         	btrfs     	rw,nodev,relatime,compress=lzo,ssd,discard,space_cache,subvol=/system		0 0
UUID=46653793-24b2-4aab-a8ee-de472ff9b2d9	/.snapshots	btrfs		rw,nodev,relatime,compress=lzo,ssd,discard,space_cache,subvol=/snapshots	0 0

I want pacman to force package database sync. Is it possible?

Last edited by abi (2016-01-10 18:01:58)

Offline

#4 2016-01-10 18:01:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [SOLVED] pacman is not updating repos after snapper undochange

None of those should affect this, AFAIK. A subvol for /var would explain it, but that doesn't seem to be the case.

Does /var/log/pacman.log show the update? Does pacman -Q <updated package> show the new version or the old?

Offline

#5 2016-01-10 18:07:05

abi
Member
Registered: 2014-06-15
Posts: 13

Re: [SOLVED] pacman is not updating repos after snapper undochange

1. /var/log/pacman.log doesn't show update. The last entry is snapper install and my attempts to pacman -Suy
2. pacman -Q shows old version of package

[root@darkstar ~]# pacman -Q |grep 'linux 4'
linux 4.2.5-1

Offline

#6 2016-01-10 18:10:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [SOLVED] pacman is not updating repos after snapper undochange

OK, so it seems that things were rolled back correctly. Try pacman -Syyu, that forces it to re-download the package databases. It could be a timestamp issue.

Offline

#7 2016-01-10 18:13:50

abi
Member
Registered: 2014-06-15
Posts: 13

Re: [SOLVED] pacman is not updating repos after snapper undochange

Scimmia wrote:

OK, so it seems that things were rolled back correctly. Try pacman -Syyu, that forces it to re-download the package databases. It could be a timestamp issue.

Ouch. Yes, now it offers new packages and I miss additional y option in man when read it. I was in panic smile So, file rollback just left timestamps untouched ?

Offline

#8 2016-01-10 18:19:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [SOLVED] pacman is not updating repos after snapper undochange

The rollback probably put a timestamp on it of the time it was restored. Pacman determines whether it needs to update the databases by the timestamp on them. Old database + new timestamp sad

Don't forget to mark the thread [Solved]

Last edited by Scimmia (2016-01-10 18:19:42)

Offline

Board footer

Powered by FluxBB