Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refresh-cache doesn't cope well with broken symlinks in /var/lib/apt/lists #72

Closed
iainlane opened this issue Sep 6, 2016 · 0 comments
Closed

Comments

@iainlane
Copy link
Contributor

iainlane commented Sep 6, 2016

I somehow ended up with this - not sure if apt is supposed to guarantee that these are cleaned up if you switch mirrors in sources.list.

laney@yakkety-vm:~/temp$ sudo appstreamcli refresh-cache
[sudo] password for laney: 

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_converter_input_stream_new: assertion 'G_IS_INPUT_STREAM (base_stream)' failed

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_output_stream_splice: assertion 'G_IS_INPUT_STREAM (source)' failed

** (appstreamcli:6041): WARNING **: No origin found for file _srv_mirrors_ubuntu_dists_yakkety_restricted_dep11_Components-amd64.yml.gz

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_converter_input_stream_new: assertion 'G_IS_INPUT_STREAM (base_stream)' failed

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_output_stream_splice: assertion 'G_IS_INPUT_STREAM (source)' failed

** (appstreamcli:6041): WARNING **: No origin found for file _srv_mirrors_ubuntu_dists_yakkety-updates_main_dep11_Components-amd64.yml.gz

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_converter_input_stream_new: assertion 'G_IS_INPUT_STREAM (base_stream)' failed

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_output_stream_splice: assertion 'G_IS_INPUT_STREAM (source)' failed

** (appstreamcli:6041): WARNING **: No origin found for file _srv_mirrors_ubuntu_dists_yakkety-updates_restricted_dep11_Components-amd64.yml.gz

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_converter_input_stream_new: assertion 'G_IS_INPUT_STREAM (base_stream)' failed

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_output_stream_splice: assertion 'G_IS_INPUT_STREAM (source)' failed

** (appstreamcli:6041): WARNING **: No origin found for file _srv_mirrors_ubuntu_dists_yakkety-updates_universe_dep11_Components-amd64.yml.gz

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_converter_input_stream_new: assertion 'G_IS_INPUT_STREAM (base_stream)' failed

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_output_stream_splice: assertion 'G_IS_INPUT_STREAM (source)' failed

** (appstreamcli:6041): WARNING **: No origin found for file _srv_mirrors_ubuntu_dists_yakkety-updates_multiverse_dep11_Components-amd64.yml.gz

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_converter_input_stream_new: assertion 'G_IS_INPUT_STREAM (base_stream)' failed

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_output_stream_splice: assertion 'G_IS_INPUT_STREAM (source)' failed

** (appstreamcli:6041): WARNING **: No origin found for file _srv_mirrors_ubuntu_dists_yakkety-backports_main_dep11_Components-amd64.yml.gz

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_converter_input_stream_new: assertion 'G_IS_INPUT_STREAM (base_stream)' failed

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_output_stream_splice: assertion 'G_IS_INPUT_STREAM (source)' failed

** (appstreamcli:6041): WARNING **: No origin found for file _srv_mirrors_ubuntu_dists_yakkety-backports_restricted_dep11_Components-amd64.yml.gz

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_converter_input_stream_new: assertion 'G_IS_INPUT_STREAM (base_stream)' failed

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_output_stream_splice: assertion 'G_IS_INPUT_STREAM (source)' failed

** (appstreamcli:6041): WARNING **: No origin found for file _srv_mirrors_ubuntu_dists_yakkety-backports_universe_dep11_Components-amd64.yml.gz

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_converter_input_stream_new: assertion 'G_IS_INPUT_STREAM (base_stream)' failed

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_output_stream_splice: assertion 'G_IS_INPUT_STREAM (source)' failed

** (appstreamcli:6041): WARNING **: No origin found for file _srv_mirrors_ubuntu_dists_yakkety-backports_multiverse_dep11_Components-amd64.yml.gz

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_converter_input_stream_new: assertion 'G_IS_INPUT_STREAM (base_stream)' failed

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_output_stream_splice: assertion 'G_IS_INPUT_STREAM (source)' failed

** (appstreamcli:6041): WARNING **: No origin found for file _srv_mirrors_ubuntu_dists_yakkety_main_dep11_Components-amd64.yml.gz

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_converter_input_stream_new: assertion 'G_IS_INPUT_STREAM (base_stream)' failed

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_output_stream_splice: assertion 'G_IS_INPUT_STREAM (source)' failed

** (appstreamcli:6041): WARNING **: No origin found for file _srv_mirrors_ubuntu_dists_yakkety_universe_dep11_Components-amd64.yml.gz

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_converter_input_stream_new: assertion 'G_IS_INPUT_STREAM (base_stream)' failed

(appstreamcli:6041): GLib-GIO-CRITICAL **: g_output_stream_splice: assertion 'G_IS_INPUT_STREAM (source)' failed

** (appstreamcli:6041): WARNING **: No origin found for file _srv_mirrors_ubuntu_dists_yakkety_multiverse_dep11_Components-amd64.yml.gz
AppStream data pool was loaded, but some metadata was ignored due to errors.

It's because:

laney@yakkety-vm:~/temp$ ls -l /var/lib/apt/lists/_srv_mirrors_ubuntu_dists_yakkety_restricted_dep11_Components-amd64.yml.gz
lrwxrwxrwx 1 root root 74 Aug 31 11:17 /var/lib/apt/lists/_srv_mirrors_ubuntu_dists_yakkety_restricted_dep11_Components-amd64.yml.gz -> /srv/mirrors/ubuntu/dists/yakkety/restricted/dep11/Components-amd64.yml.gz
laney@yakkety-vm:~/temp$ ls -l /srv/mirrors/ubuntu/dists/yakkety/restricted/dep11/Components-amd64.yml.gz
ls: cannot access '/srv/mirrors/ubuntu/dists/yakkety/restricted/dep11/Components-amd64.yml.gz': No such file or directory
iainlane pushed a commit to iainlane/appstream that referenced this issue Sep 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant