Suggest using `apt update` rather than `apt-get update`
apt-get is replaced by apt for interactive use and
apt is quicker to type.
Paul Wise
3 years ago
42 | 42 |
# First check if apt-get is sane enough before proceeding
|
43 | 43 |
if ! ls /var/lib/apt/lists/ |grep Release >/dev/null; then
|
44 | 44 |
echo "ERROR: Your apt lists are empty. Update your package database"
|
45 | |
echo "using 'apt-get update'"
|
|
45 |
echo "using 'apt update'"
|
46 | 46 |
fi
|
47 | 47 |
|
48 | 48 |
error=0
|
|
50 | 50 |
apt-get download "$pkgspec"
|
51 | 51 |
if [ $? -ne 0 ] ; then
|
52 | 52 |
echo "If you believe the package exists then consider updating your"
|
53 | |
echo "package database using 'apt-get update'."
|
|
53 |
echo "package database using 'apt update'."
|
54 | 54 |
error=1
|
55 | 55 |
continue
|
56 | 56 |
fi
|
|
0 |
debian-goodies (0.86) UNRELEASED; urgency=medium
|
|
1 |
|
|
2 |
* Suggest using `apt update` rather than `apt-get update`
|
|
3 |
|
|
4 |
-- Paul Wise <pabs@debian.org> Mon, 04 May 2020 10:15:56 +0800
|
|
5 |
|
0 | 6 |
debian-goodies (0.85) unstable; urgency=medium
|
1 | 7 |
|
2 | 8 |
[ Unit 193 ]
|
487 | 487 |
<core file or PID or program> [ ... ]
|
488 | 488 |
|
489 | 489 |
You must already have the correct debug lines in your sources.list and have
|
490 | |
executed 'apt-get update'.
|
|
490 |
executed 'apt update'.
|
491 | 491 |
|
492 | 492 |
$0 requires the elfutils and dctrl-tools packages to be installed.
|
493 | 493 |
EOF
|
21 | 21 |
|
22 | 22 |
deb http://debug.mirrors.debian.org/debian-debug/ unstable-debug main
|
23 | 23 |
|
24 | |
Don't forget to run C<apt-get update> as root after adding such a
|
|
24 |
Don't forget to run C<apt update> as root after adding such a
|
25 | 25 |
line.
|
26 | 26 |
|
27 | 27 |
Additionally, B<find-dbgsym-packages> requires the I<elfutils> and
|