We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

[SOLVED] Can't install or update any packages - pkcon refresh failed [answered]

asked 2014-10-14 12:59:43 +0200

kaulian gravatar image

updated 2016-08-04 15:56:06 +0200

jiit gravatar image

I since few day, i have a problem I can't update package or install one with pkcon and with the store

I have this error when I try to debug with pkcon cli

pkcon refresh failed every time. "Message: connection-refused: adaptation1: [|] Failed to cac he repo (4)."

I disabled all repo from warehouse but same problem

df is good and btrfs volume as enough space.

Thanks for help

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by dsilveira
close date 2014-10-15 19:13:17.942662

Comments

please send outputs of following commands:

ssu status

ssu domain

ssu re

ssu lr

tigeli ( 2014-10-14 14:36:48 +0200 )edit

ssu status

[root@Jolla nemo]# ssu status Device
registration status: not registered
Device model: Jolla (SbJ / JP-1301)
Device UID: 3597450500XXXXX 
Release:1.0.8.21

* ssu domain *

[root@Jolla nemo]# ssu domain Device
domain is currently: sales

* su re *

[root@Jolla nemo]# ssu re Device
release is currently: 1.0.8.21

* ssu lr *

 [root@Jolla nemo]# ssu lr Enabled
repositories (global): 
- adaptation0 ... https://store-repository.jolla.com/releases/1.0.8.21/jolla-hw/adaptation-android-common/armv7hl/
- adaptation1 ... https://store-repository.jolla.com/releases/1.0.8.21/jolla-hw/adaptation-qualcomm-sbj/armv7hl/
- aliendalvik ... https://store-repository.jolla.com/releases/1.0.8.21/aliendalvik/SbJ/
- apps        ... https://releases.jolla.com/jolla-apps/1.0.8.21/armv7hl/
- eas         ... https://store-repository.jolla.com/features/1.0.8.21/eas/armv7hl/
- hotfixes    ... https://releases.jolla.com/releases/1.0.8.21/hotfixes/armv7hl/
- jolla       ... https://releases.jolla.com/releases/1.0.8.21/jolla/armv7hl/
- xt9         ... https://store-repository.jolla.com/features/1.0.8.21/xt9/armv7hl/

Enabled repositories (user): 
- openrepos-basil ... http://sailfish.openrepos.net/basil/personal/main
- store           ... https://store-repository.jolla.com/SbJ/armv7hl/?version=1.0.8.21

Disabled repositories (global, might
be overridden by user config): 

Disabled repositories (user): 
 - home             ... https://download.jollamobile.com/home:/honeybadger/latest_armv7hl/
- opentepos-NielDK ... 
- openrepos-NielDK ... http://sailfish.openrepos.net/NielDK/personal/main

Thanks for help

kaulian ( 2014-10-14 14:59:47 +0200 )edit

* result of pkcon refresh *

[root@Jolla nemo]# pkcon refresh -p -v
14:00:25    PackageKit          Verbose debugging enabled (on console 1)
14:00:25    PackageKit          notify::connected
14:00:25    PackageKit          notify::connected
14:00:25    PackageKit          filter=(null), filters=0
14:00:25    PackageKit          adding state 0x4190b100
14:00:25    PackageKit          role now refresh-cache
Transaction:    Rafraîchissement du cache
État:   Attente dans la file
État:   Attente de l'authentification
État:   Attente dans la file
14:00:25    PackageKit          emit transaction-list-changed
État:   Démarrage
État:   Mise à jour de la liste des logiciels
Pourcentage:    0
Pourcentage:    10
Pourcentage:    30
Pourcentage:    40
Pourcentage:    60
Pourcentage:    80
14:00:58    PackageKit          emit transaction-list-changed
Pourcentage:    90
14:01:12    PackageKit          remove state 0x4190b100
Résultats :
Message : connection-refused: adaptation1: [|] Échec de la mise en cache du dépôt (4).
eas: [|] Échec de la mise en cache du dépôt (4).
jolla: [|] Échec de la mise en cache du dépôt (4).
xt9: [|] Échec de la mise en cache du dépôt (4).
kaulian ( 2014-10-14 15:03:13 +0200 )edit

Hmm, everything seems to be in order. Does it behave same way in both mobile data and wlan?

tigeli ( 2014-10-14 15:13:27 +0200 )edit

Yes, 2 wlan and mobile data 2 reboot nothing

kaulian ( 2014-10-14 15:23:49 +0200 )edit

2 Answers

Sort by » oldest newest most voted
4

answered 2014-10-14 15:34:36 +0200

Basil gravatar image

updated 2014-10-14 15:50:03 +0200

It's zypp backend message. Seems like your local package cache (at /var/cache/zypp/raw) is damaged for those repositories (adaptation1, eas, jolla, ex9). You can run zypper ref -f as root, to make force repositories update.

If zypper is not available on your device(not installed), you can perform force update command for every mentioned repository: pkcon repo-set-data adaptation1 refresh-now true

edit flag offensive delete publish link more

Comments

But I can't install zypper :)

kaulian ( 2014-10-14 15:35:17 +0200 )edit

Do you have URL where I can download rpm ? Thanks

kaulian ( 2014-10-14 15:35:40 +0200 )edit

Then you can run single repository force command for each repository: pkcon repo-set-data adaptation1 refresh-now true

Basil ( 2014-10-14 15:39:59 +0200 )edit

That's seems do not works

[root@Jolla nemo]# pkcon repo-set-data adaptation1 refresh-now true
...
Erreur fatale: Can't access the given URL

I try for each repository and same error after pkcon have same issue

connection-refused: adaptation1: [|] Échec de la mise en cache du dépôt (4).

Can I try to remove the package cache of zypp ?

kaulian ( 2014-10-14 15:45:12 +0200 )edit

Please provide output of cat /etc/zypp/repos.d/ssu_adaptation1_release.repo Either baseurl is missing/wrong, or there is a problem with ssu plugin.

Basil ( 2014-10-14 15:49:19 +0200 )edit
2

answered 2014-10-15 01:39:22 +0200

kaulian gravatar image

updated 2014-10-15 11:08:33 +0200

Solved !!

I installed zypper from the mer website repo

then i launch

zypper -v ref -f

i have "gzip command not found"

and that right i don't have gzip (that's a symbolic links to busybox) and i don't know why but i lost /bin/busybox. Why i don't know but that the problem ..

So solved by new installation of busybox package

wget https://releases.jolla.com/releases/1.0.8.21/jolla/armv7hl/mw/armv7hl/busybox-1.21.0+git4-1.2.24.armv7hl.rpm
rpm -iv busybox-1.21.0+git4-1.2.24.armv7hl.rpm --force

I think problem arrived when I play this permissions denied android app. So be careful with android app

Thanks to everybody for help

edit flag offensive delete publish link more

Comments

now bog question how found rpm that provide the binary /system/xbin/busybox or anyone can send me the binary my twitter account @espritlibreinfo

thanks

kaulian ( 2014-10-15 01:45:53 +0200 )edit

Question tools

Follow
7 followers

Stats

Asked: 2014-10-14 12:59:43 +0200

Seen: 9,967 times

Last updated: Oct 15 '14