Dec. 8, 2017, 4:29 a.m.

Ошибка при сборке snap пакета

snap

Всем привет.
Столкнулся с такой интересной ошибкой при использовании сборки с последней версией snapcraft version 2.35
Использую дистрибутивы Ubuntu 16.04 и KDE Neon LTS. Последний советую всем)
С предыдущей версией я собирал подобный проект без проблем, ниже привожу конфиг:

name: bsp095project
version: "1.0"
summary: timer
description: |
    Application for medical testing
confinement: strict
architectures: [amd64]

apps:
    timerproject:
        command: bin/run.sh $SNAP/usr/bin/ProjectTimer
        plugs: [home, unity7, x11, opengl]
          
parts:
    files:
        plugin: dump
        source: scripts
        after: [integration]

    integration:
        plugin: nil
        stage-packages:
            - libc-bin
            - libclutter-1.0-0
            - libxkbcommon0
            - ttf-ubuntu-font-family
            - dmz-cursor-theme
            - libglib2.0-0
            - light-themes
            - shared-mime-info
            - libqt5gui5
            - libgdk-pixbuf2.0-0
            - libqt5svg5
            - libqt5quick5
            - libsqlite0
            - libqt5sql5
            - libqt5sql5-sqlite
            - libsqlite3-0
            - appmenu-qt5
            - libqt5qml5
            - libqt5quickwidgets5
            - libgl1-mesa-dev
            - qml-module-qtquick-controls
            - qml-module-qtqml-models2
            - qmlscene
            - qml-module-qt-labs-folderlistmodel
            - qml-module-qtquick-xmllistmodel
        after: [desktop-qt5]

Так вот теперь после обновления получаю такую ошибку:

Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 DEP-11 Metadata                                                                                                                                                
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64 Icons                                                                                                                                                   
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64@2 Icons                                                                                                                                                 
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 128x128 Icons                                                                                                                                                 
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 Packages                                                                                                                                                       
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main i386 Packages                                                                                                                                                        
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main all Packages                                                                                                                                                         
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 DEP-11 Metadata                                                                                                                                                
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64 Icons                                                                                                                                                   
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64@2 Icons                                                                                                                                                 
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 128x128 Icons                                                                                                                                                 
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 Packages                                                                                                                                                       
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main i386 Packages                                                                                                                                                        
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main all Packages                                                                                                                                                         
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 DEP-11 Metadata                                                                                                                                                
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64 Icons                                                                                                                                                   
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64@2 Icons                                                                                                                                                 
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 128x128 Icons                                                                                                                                                 
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 Packages                                                                                                                                                       
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main i386 Packages                                                                                                                                                        
  403  Forbidden                                                                                                                                                                                                                                    
Ign http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main all Packages                                                                                                                                                         
Ign http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 DEP-11 Metadata                                                                                                                                                
Ign http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64 Icons                                                                                                                                                   
Ign http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64@2 Icons                                                                                                                                                 
Ign http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 128x128 Icons                                                                                                                                                 
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 Packages                                                                                                                                                       
  403  Forbidden                                                                                                                                                                                                                                    
Ign http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main i386 Packages                                                                                                                                                        
Fetched 11.0 kB in 0s (0 B/s)                                                                                                                                                                                                                       
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 452, in update
    pulse_interval)
SystemError: W:The repository 'http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://archive.neon.kde.org/user/lts xenial InRelease' doesn't support architecture 'i386', E:Failed to fetch http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu/dists/xenial/main/binary-amd64/Packages  403  Forbidden, E:Some index files failed to download. They have been ignored, or old ones used instead.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/snapcraft", line 9, in <module>
    load_entry_point('snapcraft==2.35', 'console_scripts', 'snapcraft')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/__main__.py", line 19, in <module>
    run(prog_name='snapcraft')
  File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1037, in invoke
    return Command.invoke(self, ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/__init__.py", line 124, in run
    ctx.forward(lifecyclecli.commands['snap'])
  File "/usr/lib/python3/dist-packages/click/core.py", line 552, in forward
    return self.invoke(cmd, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 140, in snap
    project_options, directory=directory, output=output)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_packer.py", line 45, in snap
    execute('prime', project_options)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 80, in execute
    _Executor(config, project_options).run(step, part_names)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 175, in run
    self._run_step(step, part, part_names)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 205, in _run_step
    getattr(part, 'prepare_{}'.format(step))()
  File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 244, in prepare_pull
    self._fetch_stage_packages()
  File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 230, in _fetch_stage_packages
    stage_packages)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/_deb.py", line 293, in get
    with self._apt.archive(self._cache.base_dir) as apt_cache:
  File "/usr/lib/python3.5/contextlib.py", line 59, in __enter__
    return next(self.gen)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/_deb.py", line 141, in archive
    raise e
  File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/_deb.py", line 132, in archive
    apt_cache = self._setup_apt(cache_dir)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/_deb.py", line 125, in _setup_apt
    sources_list=sources_list_file)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 454, in update
    raise FetchFailedException(e)
apt.cache.FetchFailedException: W:The repository 'http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://archive.neon.kde.org/user/lts xenial InRelease' doesn't support architecture 'i386', E:Failed to fetch http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu/dists/xenial/main/binary-amd64/Packages  403  Forbidden, E:Some index files failed to download. They have been ignored, or old ones used instead.

Если кто понимает в подобной ошибке или сталкивался уже то буду признателен за подмогу в решении проблемы)

We recommend hosting TIMEWEB
We recommend hosting TIMEWEB
Stable hosting, on which the social network EVILEG is located. For projects on Django we recommend VDS hosting.
2

Привет!
Есть у меня такая мысль, что нужно репозиторий удалить, поскольку к нему просто нет доступа.

sudo add-apt-repository -r ppa:varlesh-l/indicator-kdeconnect
sudo apt update
А потом попытаться ещё раз запустить сборку пакета

И как оказалось это правда, проблема в том что репозиторий не был доступен.
Сборка в KDE Neon прошла успешно. Остается проблема только в Ubuntu но думаю что там что то тоже подобное будет.

Comments

Only authorized users can post comments.
Please, Log in or Sign up
Donate

Hello, Dear Users of EVILEG!!!

If the site helped you, then support the development of the site financially, please.

You can do it by following ways:

Thank you, Evgenii Legotckoi

AS
Dec. 13, 2019, 6:05 a.m.
Aruzhan Seraliyeva

C++ - Тест 003. Условия и циклы

  • Result:50points,
  • Rating points-4
AS
Dec. 13, 2019, 5:47 a.m.
Aruzhan Seraliyeva

C++ - Test 001. The first program and data types

  • Result:40points,
  • Rating points-8
T
Dec. 11, 2019, 4:56 p.m.
Toma

C++ - Тест 003. Условия и циклы

  • Result:50points,
  • Rating points-4
Last comments
Dec. 9, 2019, 3:41 a.m.
Evgenij Legotskoj

Эта ошибка invalid use of incomplete type ‘class Ui::AnotherWindow’ обычно говорит о том, что не найдено определение класса или структуры. Типичная проблема - не подключён заголовочны…
NB
Dec. 9, 2019, 3:36 a.m.
Nikolaj Batmanov

Ну, не настолько со мной всё полхо...))) Вроде бы. Я ж кнопки отрисовываю.
Dec. 9, 2019, 3:14 a.m.
Evgenij Legotskoj

Добрый день. У вас ui файлов по ходу нет. UI файлы используются для вёрстки в графическом дизайнере.
NB
Dec. 9, 2019, 3:05 a.m.
Nikolaj Batmanov

Здравствуйте! Полностью скопировал ваш пример к себе, чтобы разобраться. А он не хочет запускаться, дает ошибку: invalid use of incomplete type ‘class Ui::AnotherWindow’ ui(new Ui…
Dec. 8, 2019, 7:23 a.m.
Evgenij Legotskoj

У меня здесь есть одна старая статья с примером векторного редактора. Там есть ответы на ваши вопросы. Поизучайте Qt/C++ - Урок 072. Пример векторного редактора на Qt QGraphicsItem, QG…
Now discuss on the forum
Dec. 13, 2019, 10:16 a.m.
Ruslan Volshebnik

Да, я посмотрел, вы абсолютно правы. Единственное, если я правильно понял, если срабатывает условие if (aggregates["max_id"] - aggregates["min_id"]) + 1 == aggregates["count"]: return sel…
t
Dec. 13, 2019, 9:53 a.m.
tantrido

Ответ >>
Dec. 13, 2019, 8:39 a.m.
Aleksandr Panjushkin

Вроде да. Только там начинаются вопросы с тем, чтобы виджет бы в фокусе, чтобы до виджета это событие долетало.
DK
Dec. 13, 2019, 7:48 a.m.
Dzhon Kofi

Привет. Есть класс "ждун", который используется на разных виджетах: class WaiterDialog;#define WAITER_DIALOG Singleton<WaiterDialog>::instance()class WaiterDialog : public QObject, …
EVILEG
About
Services
© EVILEG 2015-2019
Recommend hosting TIMEWEB