Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
longwsl@DESKTOP-3NGNNKU:~$ sudo apt-get install p7zip-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package p7zip-full is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'p7zip-full' has no installation candidate
longwsl@DESKTOP-3NGNNKU:~$ sudo add-apt-repository universe
'universe' distribution component is already enabled for all sources.
longwsl@DESKTOP-3NGNNKU:~$ sudo apt-get install p7zip-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package p7zip-full is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'p7zip-full' has no installation candidate
longwsl@DESKTOP-3NGNNKU:~$
@blaine12100

This comment has been minimized.

Copy link

blaine12100 commented Feb 20, 2019

Hi.I checked your code and i tried it on my local instance.

Try doing sudo-apt get update after adding the repository

In my case this worked perfectly

dhruv@dhruv-HP-Pavilion-15-Notebook-PC:$ sudo add-apt-repository universe
[sudo] password for dhruv:
'universe' distribution component is already enabled for all sources.
dhruv@dhruv-HP-Pavilion-15-Notebook-PC:
$ sudo pat-get install p7zip-full
sudo: pat-get: command not found
dhruv@dhruv-HP-Pavilion-15-Notebook-PC:$ sudo apt-get install p7zip-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
debhelper dh-autoreconf dh-php dh-strip-nondeterminism gyp
libarchive-cpio-perl libc-ares2 libdevmapper1.02.1:i386
libfile-stripnondeterminism-perl libfreetype6:i386 libfuse2:i386
libhttp-parser2.7.1 libjs-async libjs-inherits libjs-node-uuid libllvm6.0
liblua5.1-0 libmail-sendmail-perl libpng16-16:i386 libssl-doc
libsys-hostname-long-perl libuv1-dev libvsqlitepp3v5 linux-headers-4.15.0-36
linux-headers-4.15.0-36-generic linux-headers-4.15.0-37
linux-headers-4.15.0-37-generic linux-image-4.15.0-35-generic
linux-image-4.15.0-36-generic linux-image-4.15.0-37-generic
linux-modules-4.15.0-35-generic linux-modules-4.15.0-36-generic
linux-modules-4.15.0-37-generic linux-modules-extra-4.15.0-35-generic
linux-modules-extra-4.15.0-36-generic linux-modules-extra-4.15.0-37-generic
nodejs-doc pkg-php-tools po-debconf shtool xml2
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
p7zip
Suggested packages:
p7zip-rar
The following NEW packages will be installed:
p7zip p7zip-full
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 1,522 kB of archives.
After this operation, 5,755 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 p7zip amd64 16.02+dfsg-6 [358 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/universe amd64 p7zip-full amd64 16.02+dfsg-6 [1,164 kB]
Fetched 1,522 kB in 2s (873 kB/s)
Selecting previously unselected package p7zip.
(Reading database ... 304059 files and directories currently installed.)
Preparing to unpack .../p7zip_16.02+dfsg-6_amd64.deb ...
Unpacking p7zip (16.02+dfsg-6) ...
Selecting previously unselected package p7zip-full.
Preparing to unpack .../p7zip-full_16.02+dfsg-6_amd64.deb ...
Unpacking p7zip-full (16.02+dfsg-6) ...
Processing triggers for doc-base (0.10.8) ...
Processing 1 added doc-base file...
Setting up p7zip (16.02+dfsg-6) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up p7zip-full (16.02+dfsg-6) ...
dhruv@dhruv-HP-Pavilion-15-Notebook-PC:
$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.