Privacy policyContactsAbout siteOpinionsGitHubDonate
© EVILEG 2015-2018
Recommend hosting
TIMEWEB
Dec. 8, 2017, 9: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.

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

2

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

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

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

0

Comments

Only authorized users can post comments.
Please, Log in or Sign up
v
Jan. 17, 2019, 11:51 a.m.
vitalir12

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:20points,
  • Rating points-10
v
Jan. 17, 2019, 11:49 a.m.
vitalir12

C++ - Test 002. Constants

  • Result:50points,
  • Rating points-4
v
Jan. 17, 2019, 11:13 a.m.
vitalir12

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

  • Result:28points,
  • Rating points-10
Last comments
I
Jan. 16, 2019, 8:06 a.m.
IscanderChe

Заработало. Забыл model->select(); вписать.
I
Jan. 16, 2019, 8:02 a.m.
IscanderChe

Всё равно пусто, хотя строка с данными в базу добавляется.
Jan. 16, 2019, 7:51 a.m.
Евгений Легоцкой

потому, что нужно сохранять информацию для всех остальных ролей и столбцов через вызов переопределённого метода. Да к тому же вы ещё и зациклили вызов метода data. QVariant MySqlTableModel:...
I
Jan. 16, 2019, 7:43 a.m.
IscanderChe

Сделал вот так. В tableView ничего нет, кроме заголовка. QVariant MySqlTableModel::data(const QModelIndex &index, int role) const{ if (role == Qt::DisplayRole) { QTime ...
Now discuss on the forum
Jan. 17, 2019, 1:40 p.m.
Михаиллл

Спасибо, заработало.Учту с переменными.
Jan. 17, 2019, 12:01 p.m.
Алексей Внуков

у меня просто есть отдельное поле с чекбоксамими какие колонки нужно отображать CheckBox { id: checkBox text: qsTr("some text") checked: true onC...
Jan. 15, 2019, 4:53 p.m.
Михаиллл

Спасибо, заработало.Но выдало обычный текст без форатирования HTML.Придется искать дальше
Jan. 15, 2019, 12:52 p.m.
BlinCT

Я же вам выше написал CLion умеет работать с ремоут машинами. И Qt так же собирает.
Join us in social networks

For registered users on the site there is a minimum amount of advertising