:: [DNG] apt-get vs apt
Kezdőlap
Delete this message
Reply to this message
Szerző: Alessandro Vesely
Dátum:  
Címzett: dng
Tárgy: [DNG] apt-get vs apt
Hi,

TL;DR: apt fails where apt-get works. Why?

I just updated ASCII using apt:

root@pcale:~# apt update
Get:1 http://deb.devuan.org/merged ascii InRelease [25.6 kB]
Get:2 http://deb.devuan.org/merged ascii-updates InRelease [25.6 kB]
Get:3 http://deb.devuan.org/merged ascii-security InRelease [25.6 kB]
Get:4 http://deb.devuan.org/merged ascii-backports InRelease [25.6 kB]
Get:5 http://deb.devuan.org/merged ascii-security/main Sources [192 kB]
Get:6 http://deb.devuan.org/merged ascii-security/main i386 Packages [492 kB]
Fetched 787 kB in 1s (762 kB/s)                                                   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@pcale:~# 
root@pcale:~# 
root@pcale:~# 
root@pcale:~# apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libargon2-0 libqrencode3
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
  imagemagick-6-common imagemagick-6-doc imagemagick-common imagemagick-doc libimage-magick-perl perlmagick
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,761 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Err:1 http://deb.devuan.org/merged ascii-security/main i386 libimage-magick-perl all 8:6.9.7.4+dfsg-11+deb9u8
  404  Not Found [IP: 130.225.254.116 80]
Err:2 http://deb.devuan.org/merged ascii-security/main i386 perlmagick all 8:6.9.7.4+dfsg-11+deb9u8
  404  Not Found [IP: 130.225.254.116 80]
Err:3 http://deb.devuan.org/merged ascii-security/main i386 imagemagick-6-doc all 8:6.9.7.4+dfsg-11+deb9u8
  404  Not Found [IP: 130.225.254.116 80]
Err:4 http://deb.devuan.org/merged ascii-security/main i386 imagemagick-doc all 8:6.9.7.4+dfsg-11+deb9u8
  404  Not Found [IP: 130.225.254.116 80]
Err:5 http://deb.devuan.org/merged ascii-security/main i386 imagemagick-6-common all 8:6.9.7.4+dfsg-11+deb9u8
  404  Not Found [IP: 130.225.254.116 80]
Err:6 http://deb.devuan.org/merged ascii-security/main i386 imagemagick-common all 8:6.9.7.4+dfsg-11+deb9u8
  404  Not Found [IP: 130.225.254.116 80]
E: Failed to fetch http://mirrors.dotsrc.org/debian-security/pool/updates/main/i/imagemagick/libimage-magick-perl_6.9.7.4+dfsg-11+deb9u8_all.deb  404  Not Found [IP: 130.225.254.116 80]
E: Failed to fetch http://mirrors.dotsrc.org/debian-security/pool/updates/main/i/imagemagick/perlmagick_6.9.7.4+dfsg-11+deb9u8_all.deb  404  Not Found [IP: 130.225.254.116 80]
E: Failed to fetch http://mirrors.dotsrc.org/debian-security/pool/updates/main/i/imagemagick/imagemagick-6-doc_6.9.7.4+dfsg-11+deb9u8_all.deb  404  Not Found [IP: 130.225.254.116 80]
E: Failed to fetch http://mirrors.dotsrc.org/debian-security/pool/updates/main/i/imagemagick/imagemagick-doc_6.9.7.4+dfsg-11+deb9u8_all.deb  404  Not Found [IP: 130.225.254.116 80]
E: Failed to fetch http://mirrors.dotsrc.org/debian-security/pool/updates/main/i/imagemagick/imagemagick-6-common_6.9.7.4+dfsg-11+deb9u8_all.deb  404  Not Found [IP: 130.225.254.116 80]
E: Failed to fetch http://mirrors.dotsrc.org/debian-security/pool/updates/main/i/imagemagick/imagemagick-common_6.9.7.4+dfsg-11+deb9u8_all.deb  404  Not Found [IP: 130.225.254.116 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?



I repeated it a second time, same result. At that point I noticed the last line says "maybe run *apt-get* update". Using apt everything worked (well, almost) and the packages were found; see below.

I notice that https://www.devuan.org/os/documentation/dev1fanboy/en/upgrade-to-beowulf always uses apt-get.

I used to always use apt-get myself. One or two years ago I found apt was meant to be an "easier" interface and, since it's shorter, started using that.

I guess I'd switch back to using apt-get, shouldn't I?

Best
Ale
--

root@pcale:~# apt-get update
Hit:1 http://deb.devuan.org/merged ascii InRelease
Hit:2 http://deb.devuan.org/merged ascii-updates InRelease
Hit:3 http://deb.devuan.org/merged ascii-security InRelease
Hit:4 http://deb.devuan.org/merged ascii-backports InRelease
Reading package lists... 1%

Reading package lists... Done
root@pcale:~# 
root@pcale:~# 
root@pcale:~# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libargon2-0 libqrencode3
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
  imagemagick-6-common imagemagick-6-doc imagemagick-common imagemagick-doc libimage-magick-perl perlmagick
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,761 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://deb.devuan.org/merged ascii-security/main i386 libimage-magick-perl all 8:6.9.7.4+dfsg-11+deb9u8 [53.3 kB]
Get:2 http://deb.devuan.org/merged ascii-security/main i386 perlmagick all 8:6.9.7.4+dfsg-11+deb9u8 [1,270 B]
Get:3 http://deb.devuan.org/merged ascii-security/main i386 imagemagick-6-doc all 8:6.9.7.4+dfsg-11+deb9u8 [7,519 kB]
Get:4 http://deb.devuan.org/merged ascii-security/main i386 imagemagick-doc all 8:6.9.7.4+dfsg-11+deb9u8 [1,454 B]
Get:5 http://deb.devuan.org/merged ascii-security/main i386 imagemagick-6-common all 8:6.9.7.4+dfsg-11+deb9u8 [185 kB]
Get:6 http://deb.devuan.org/merged ascii-security/main i386 imagemagick-common all 8:6.9.7.4+dfsg-11+deb9u8 [1,406 B]
Fetched 7,761 kB in 0s (9,000 kB/s)
Reading changelogs... Done
(Reading database ... 766030 files and directories currently installed.)
Preparing to unpack .../0-libimage-magick-perl_8%3a6.9.7.4+dfsg-11+deb9u8_all.deb ...
Unpacking libimage-magick-perl (8:6.9.7.4+dfsg-11+deb9u8) over (8:6.9.7.4+dfsg-11+deb9u7) ...
Preparing to unpack .../1-perlmagick_8%3a6.9.7.4+dfsg-11+deb9u8_all.deb ...
Unpacking perlmagick (8:6.9.7.4+dfsg-11+deb9u8) over (8:6.9.7.4+dfsg-11+deb9u7) ...
Preparing to unpack .../2-imagemagick-6-doc_8%3a6.9.7.4+dfsg-11+deb9u8_all.deb ...
Unpacking imagemagick-6-doc (8:6.9.7.4+dfsg-11+deb9u8) over (8:6.9.7.4+dfsg-11+deb9u7) ...
Preparing to unpack .../3-imagemagick-doc_8%3a6.9.7.4+dfsg-11+deb9u8_all.deb ...
Unpacking imagemagick-doc (8:6.9.7.4+dfsg-11+deb9u8) over (8:6.9.7.4+dfsg-11+deb9u7) ...
Preparing to unpack .../4-imagemagick-6-common_8%3a6.9.7.4+dfsg-11+deb9u8_all.deb ...
Unpacking imagemagick-6-common (8:6.9.7.4+dfsg-11+deb9u8) over (8:6.9.7.4+dfsg-11+deb9u7) ...
Preparing to unpack .../5-imagemagick-common_8%3a6.9.7.4+dfsg-11+deb9u8_all.deb ...
Unpacking imagemagick-common (8:6.9.7.4+dfsg-11+deb9u8) over (8:6.9.7.4+dfsg-11+deb9u7) ...
Setting up imagemagick-6-common (8:6.9.7.4+dfsg-11+deb9u8) ...
Setting up libimage-magick-perl (8:6.9.7.4+dfsg-11+deb9u8) ...
Setting up perlmagick (8:6.9.7.4+dfsg-11+deb9u8) ...
Setting up imagemagick-6-doc (8:6.9.7.4+dfsg-11+deb9u8) ...
Setting up imagemagick-common (8:6.9.7.4+dfsg-11+deb9u8) ...
Setting up imagemagick-doc (8:6.9.7.4+dfsg-11+deb9u8) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 changed doc-base file...
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bdb (LoadError)
    from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/lib/ruby/vendor_ruby/dhelp.rb:21:in `<top (required)>'
    from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/sbin/dhelp_parse:32:in `<main>'
Registering documents with dhelp...
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bdb (LoadError)
    from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/lib/ruby/vendor_ruby/dhelp.rb:21:in `<top (required)>'
    from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/sbin/dhelp_parse:32:in `<main>'
Registering documents with scrollkeeper...
Processing triggers for man-db (2.7.6.1-2) ...