ylogx/dotfiles

Errors in package installation

ylogx opened this issue · 0 comments

ylogx commented
TASK [ubuntu : Install libraries using package manager] ************************
ok: [localhost] => (item=ack-grep)
failed: [localhost] (item=bash) => {"cache_update_time": 1511572167, "cache_updated": false, "changed": false, "failed": true, "item": "bash", "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'bash'' failed: E: There are problems and -y was used without --force-yes\n", "rc": 100, "stderr": "E: There are problems and -y was used without --force-yes\n", "stderr_lines": ["E: There are problems and -y was used without --force-yes"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n  bash-doc\nThe following packages will be upgraded:\n  bash\n1 upgraded, 0 newly installed, 0 to remove and 134 not upgraded.\nNeed to get 575 kB of archives.\nAfter this operation, 0 B of additional disk space will be used.\nWARNING: The following packages cannot be authenticated!\n  bash\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Suggested packages:", "  bash-doc", "The following packages will be upgraded:", "  bash", "1 upgraded, 0 newly installed, 0 to remove and 134 not upgraded.", "Need to get 575 kB of archives.", "After this operation, 0 B of additional disk space will be used.", "WARNING: The following packages cannot be authenticated!", "  bash"]}
failed: [localhost] (item=curl) => {"cache_update_time": 1511572167, "cache_updated": false, "changed": false, "failed": true, "item": "curl", "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'curl'' failed: E: There are problems and -y was used without --force-yes\n", "rc": 100, "stderr": "E: There are problems and -y was used without --force-yes\n", "stderr_lines": ["E: There are problems and -y was used without --force-yes"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n  libcurl3\nThe following packages will be upgraded:\n  curl libcurl3\n2 upgraded, 0 newly installed, 0 to remove and 133 not upgraded.\nNeed to get 296 kB of archives.\nAfter this operation, 2048 B of additional disk space will be used.\nWARNING: The following packages cannot be authenticated!\n  curl libcurl3\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following extra packages will be installed:", "  libcurl3", "The following packages will be upgraded:", "  curl libcurl3", "2 upgraded, 0 newly installed, 0 to remove and 133 not upgraded.", "Need to get 296 kB of archives.", "After this operation, 2048 B of additional disk space will be used.", "WARNING: The following packages cannot be authenticated!", "  curl libcurl3"]}
ok: [localhost] => (item=git)
ok: [localhost] => (item=htop)
ok: [localhost] => (item=nmap)
ok: [localhost] => (item=python3)
^C [ERROR]: User interrupted execution

On manual apt install

recsys% sudo apt-get install bash
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  bash-doc
The following packages will be upgraded:
  bash
1 upgraded, 0 newly installed, 0 to remove and 134 not upgraded.
Need to get 575 kB of archives.
After this operation, 0 B of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  bash
Install these packages without verification? [y/N]

Known Fix

Manually run sudo apt update, then rerun installation.