Получить установленный пакет url с помощью apt

Попробуйте установить универсальные драйверы камеры в Ubuntu.

sudo apt-get install libsbigudrv2 libsbigudrv0

Затем установите GUVCview и посмотрите, открывается ли камера.

sudo apt-get install guvcview
0
задан 30 June 2017 в 01:33

6 ответов

Конечно, не все установленные пакеты будут иметь связанный с ними URL. Тем не менее, вы можете использовать apt-get dowload:

$ apt-get download --print-uris wget
'http://archive.ubuntu.com/ubuntu/pool/main/w/wget/wget_1.15-1ubuntu1.14.04.2_amd64.deb' wget_1.15-1ubuntu1.14.04.2_amd64.deb 270522 SHA256:a3f3b049ea373402236a804a5a0952c6ef9b356ba8cc19fbc1f257db6e8f3052

Это версия кандидата, как показано на apt-cache policy, которая может не обязательно быть установленной версией.

1
ответ дан 22 May 2018 в 21:01
  • 1
    Huh ... Я полностью забыл о download, спасибо; Что-то вроде apt-get download --print-uris wget=1.17.1-1ubuntu1.1 сделает это ... – Ravexina 30 June 2017 в 01:31
  • 2
    Невозможно получить список зависимостей, верно? – Ravexina 30 June 2017 в 01:36
  • 3
    @Ravexina API API Python может быть полезен. Информация немного разбросана, но это все. – muru 30 June 2017 в 01:41

Конечно, не все установленные пакеты будут иметь связанный с ними URL. Тем не менее, вы можете использовать apt-get dowload:

$ apt-get download --print-uris wget 'http://archive.ubuntu.com/ubuntu/pool/main/w/wget/wget_1.15-1ubuntu1.14.04.2_amd64.deb' wget_1.15-1ubuntu1.14.04.2_amd64.deb 270522 SHA256:a3f3b049ea373402236a804a5a0952c6ef9b356ba8cc19fbc1f257db6e8f3052

Это версия кандидата, как показано на apt-cache policy, которая может не обязательно быть установленной версией.

1
ответ дан 18 July 2018 в 10:55

Конечно, не все установленные пакеты будут иметь связанный с ними URL. Тем не менее, вы можете использовать apt-get dowload:

$ apt-get download --print-uris wget 'http://archive.ubuntu.com/ubuntu/pool/main/w/wget/wget_1.15-1ubuntu1.14.04.2_amd64.deb' wget_1.15-1ubuntu1.14.04.2_amd64.deb 270522 SHA256:a3f3b049ea373402236a804a5a0952c6ef9b356ba8cc19fbc1f257db6e8f3052

Это версия кандидата, как показано на apt-cache policy, которая может не обязательно быть установленной версией.

1
ответ дан 24 July 2018 в 19:40

Достаточно добавить флаг --reinstall (по крайней мере, на мою систему 16.04), например

$ sudo apt-get install --print-uris wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
wget is already the newest version (1.17.1-1ubuntu1.2).
wget set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 73 not upgraded.

, но

$ sudo apt-get install --reinstall --print-uris wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 73 not upgraded.
Need to get 298 kB of archives.
After this operation, 0 B of additional disk space will be used.
'http://ca.archive.ubuntu.com/ubuntu/pool/main/w/wget/wget_1.17.1-1ubuntu1.2_amd64.deb' wget_1.17.1-1ubuntu1.2_amd64.deb 298270 MD5Sum:09a54f8d74c78598f91c4b376f3d2f0e

ПРИМЕЧАНИЕ: это не работает, если пакет в настоящее время кэшируется:

$ sudo apt-get install --reinstall --download-only wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 73 not upgraded.
Need to get 298 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 wget amd64 1.17.1-1ubuntu1.2 [298 kB]
Fetched 298 kB in 0s (382 kB/s)
Download complete and in download only mode

$ sudo apt-get install --reinstall --print-uris wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 73 not upgraded.
Need to get 0 B/298 kB of archives.
After this operation, 0 B of additional disk space will be used.

, но после очистки кеша

$ sudo apt-get clean
$ sudo apt-get install --reinstall --print-uris wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 73 not upgraded.
Need to get 298 kB of archives.
After this operation, 0 B of additional disk space will be used.
'http://ca.archive.ubuntu.com/ubuntu/pool/main/w/wget/wget_1.17.1-1ubuntu1.2_amd64.deb' wget_1.17.1-1ubuntu1.2_amd64.deb 298270 MD5Sum:09a54f8d74c78598f91c4b376f3d2f0e
1
ответ дан 22 May 2018 в 21:01
  • 1
    Спасибо, но --reinstall не работает для меня 16.04, не знаю, почему ... – Ravexina 30 June 2017 в 22:04
  • 2
    @Ravexina см. Редактирование по возможной причине – steeldriver 30 June 2017 в 22:33
  • 3
    Yup, кэш был проблемой ... – Ravexina 30 June 2017 в 22:47

Достаточно добавить флаг --reinstall (по крайней мере, на мою систему 16.04), например

$ sudo apt-get install --print-uris wget Reading package lists... Done Building dependency tree Reading state information... Done wget is already the newest version (1.17.1-1ubuntu1.2). wget set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 73 not upgraded.

, но

$ sudo apt-get install --reinstall --print-uris wget Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 73 not upgraded. Need to get 298 kB of archives. After this operation, 0 B of additional disk space will be used. 'http://ca.archive.ubuntu.com/ubuntu/pool/main/w/wget/wget_1.17.1-1ubuntu1.2_amd64.deb' wget_1.17.1-1ubuntu1.2_amd64.deb 298270 MD5Sum:09a54f8d74c78598f91c4b376f3d2f0e

ПРИМЕЧАНИЕ: это не работает, если пакет в настоящее время кэшируется:

$ sudo apt-get install --reinstall --download-only wget Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 73 not upgraded. Need to get 298 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 wget amd64 1.17.1-1ubuntu1.2 [298 kB] Fetched 298 kB in 0s (382 kB/s) Download complete and in download only mode $ sudo apt-get install --reinstall --print-uris wget Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 73 not upgraded. Need to get 0 B/298 kB of archives. After this operation, 0 B of additional disk space will be used.

, но после очистки кеша

$ sudo apt-get clean $ sudo apt-get install --reinstall --print-uris wget Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 73 not upgraded. Need to get 298 kB of archives. After this operation, 0 B of additional disk space will be used. 'http://ca.archive.ubuntu.com/ubuntu/pool/main/w/wget/wget_1.17.1-1ubuntu1.2_amd64.deb' wget_1.17.1-1ubuntu1.2_amd64.deb 298270 MD5Sum:09a54f8d74c78598f91c4b376f3d2f0e
1
ответ дан 18 July 2018 в 10:55

Достаточно добавить флаг --reinstall (по крайней мере, на мою систему 16.04), например

$ sudo apt-get install --print-uris wget Reading package lists... Done Building dependency tree Reading state information... Done wget is already the newest version (1.17.1-1ubuntu1.2). wget set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 73 not upgraded.

, но

$ sudo apt-get install --reinstall --print-uris wget Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 73 not upgraded. Need to get 298 kB of archives. After this operation, 0 B of additional disk space will be used. 'http://ca.archive.ubuntu.com/ubuntu/pool/main/w/wget/wget_1.17.1-1ubuntu1.2_amd64.deb' wget_1.17.1-1ubuntu1.2_amd64.deb 298270 MD5Sum:09a54f8d74c78598f91c4b376f3d2f0e

ПРИМЕЧАНИЕ: это не работает, если пакет в настоящее время кэшируется:

$ sudo apt-get install --reinstall --download-only wget Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 73 not upgraded. Need to get 298 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 wget amd64 1.17.1-1ubuntu1.2 [298 kB] Fetched 298 kB in 0s (382 kB/s) Download complete and in download only mode $ sudo apt-get install --reinstall --print-uris wget Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 73 not upgraded. Need to get 0 B/298 kB of archives. After this operation, 0 B of additional disk space will be used.

, но после очистки кеша

$ sudo apt-get clean $ sudo apt-get install --reinstall --print-uris wget Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 73 not upgraded. Need to get 298 kB of archives. After this operation, 0 B of additional disk space will be used. 'http://ca.archive.ubuntu.com/ubuntu/pool/main/w/wget/wget_1.17.1-1ubuntu1.2_amd64.deb' wget_1.17.1-1ubuntu1.2_amd64.deb 298270 MD5Sum:09a54f8d74c78598f91c4b376f3d2f0e
1
ответ дан 24 July 2018 в 19:40
  • 1
    Спасибо, но --reinstall не работает для меня 16.04, не знаю, почему ... – Ravexina 30 June 2017 в 22:04
  • 2
    @Ravexina см. Редактирование по возможной причине – steeldriver 30 June 2017 в 22:33
  • 3
    Yup, кэш был проблемой ... – Ravexina 30 June 2017 в 22:47

Другие вопросы по тегам:

Похожие вопросы: