发现之前安装的网易音乐打不开了,命令行执行看到CRASH了,修复无解,http://music.163.com/#/download 找debian ubuntu的最新版本重装,看到它的版本已经从之前安装的1.0.0更新至1.1.0了。 apt常用来更新,然而purge参数不常用,这次重点记住 apt 命令的 purge 参数,查了一下和remove有区别,删除会更彻底。强迫症重度患者怎能不用?
============================================
apt命令的几个参数以下参考自 http://blog.csdn.net/get_set/article/details/51276609 命令参考是早期的apt-get的,然而参数含义不会相差太大 [ 我承认是复制粘贴,多看一下加深记忆, purge purge purge 记三遍 ] :
apt-get的卸载相关的命令有remove/purge/autoremove/clean/autoclean
等。具体来说:
apt-get purge / apt-get –purge remove
删除已安装包(不保留配置文件)。
如软件包a,依赖软件包b,则执行该命令会删除a,而且不保留配置文件
apt-get autoremove
删除为了满足依赖而安装的,但现在不再需要的软件包(包括已安装包),保留配置文件。
apt-get remove
删除已安装的软件包(保留配置文件),不会删除依赖软件包,且保留配置文件。
apt-get autoclean
APT的底层包是dpkg, 而dpkg 安装Package时, 会将 *.deb 放在 /var/cache/apt/archives/中,apt-get autoclean 只会删除 /var/cache/apt/archives/ 已经过期的deb。
apt-get clean
使用 apt-get clean
会将 /var/cache/apt/archives/
的 所有 deb 删掉,可以理解为 rm /var/cache/apt/archives/*.deb。
============================================
└──╼ $netease-cloud-music
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0281
Received signal 11 SEGV_MAPERR 000000088119
#0 0x7fea3a497aeb <unknown>
#1 0x7fea35c4a160 <unknown>
#2 0x7fea3cdf2b73 <unknown>
#3 0x7fea3cdf1b0b <unknown>
#4 0x7fea35c4a160 <unknown>
#5 0x7fea35977556 epoll_pwait
#6 0x7fea3a50d728 <unknown>
#7 0x7fea3a50b32e <unknown>
#8 0x7fea3a48ff9e <unknown>
#9 0x7fea3a4c3ee0 <unknown>
#10 0x7fea3a4b236a <unknown>
#11 0x7fea3a4e2de8 <unknown>
#12 0x7fea3a4df79d <unknown>
#13 0x7fea35c3f51a start_thread
#14 0x7fea359773ef clone
r8: 0000000000000002 r9: 0000000000000008 r10: 0000000000000000 r11: 0000000000000246
r12: 0000000000000000 r13: 00007fea3d6c72e9 r14: 0000000000088119 r15: 00007fea21d31168
di: 0000000000000002 si: 00007fea3d6c72e8 bp: 0000000000000119 bx: 0000000000000000
dx: 0000000000000001 ax: 0000000000088000 cx: 0000000000088119 sp: 00007fea21d31150
ip: 00007fea3cdf2b73 efl: 0000000000010202 cgf: 002b000000000033 erf: 0000000000000006
trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000088119
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0281
Received signal 11 SEGV_MAPERR 000008003119
#0 0x7fde80f36aeb <unknown>
#1 0x7fde7c6e9160 <unknown>
#2 0x7fde83891b73 <unknown>
#3 0x7fde83890b0b <unknown>
#4 0x7fde7c6e9160 <unknown>
#5 0x7fde7c416556 epoll_pwait
#6 0x7fde80fac728 <unknown>
#7 0x7fde80faa32e <unknown>
#8 0x7fde80f2ef9e <unknown>
#9 0x7fde80f62ee0 <unknown>
#10 0x7fde80f5136a <unknown>
#11 0x7fde80f81de8 <unknown>
#12 0x7fde80f7e79d <unknown>
#13 0x7fde7c6de51a start_thread
#14 0x7fde7c4163ef clone
r8: 0000000000000002 r9: 0000000000000008 r10: 0000000000000000 r11: 0000000000000246
r12: 0000000000000000 r13: 00007fde841662e9 r14: 0000000000003119 r15: 00007fde6b9e9168
di: 0000000000000002 si: 00007fde841662e8 bp: 0000000000000119 bx: 0000000000000000
dx: 0000000000000001 ax: 0000000000003000 cx: 0000000008003119 sp: 00007fde6b9e9150
ip: 00007fde83891b73 efl: 0000000000010202 cgf: 002b000000000033 erf: 0000000000000006
trp: 000000000000000e msk: 0000000000000000 cr2: 0000000008003119
[end of stack trace]
^C
┌─[✗]─[username@laptop]─[~]
└──╼ $**sudo apt purge netease-cloud-music**
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libqgsttools-p1 libqt5multimedia5-plugins libqt5multimediawidgets5
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
netease-cloud-music*
0 upgraded, 0 newly installed, 1 to remove and 10 not upgraded.
After this operation, 113 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 480773 files and directories currently installed.)
Removing netease-cloud-music (1.0.0-2) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-2) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Configuring sandbox profiles....
Sandbox profiles updated!
┌─[username@laptop]─[~]
└──╼ $cd Downloads/
┌─[username@laptop]─[~/Downloads]
└──╼ $**sudo dpkg -i netease-cloud-music_1.1.0_amd64_ubuntu.deb**
Selecting previously unselected package netease-cloud-music.
(Reading database ... 480701 files and directories currently installed.)
Preparing to unpack netease-cloud-music_1.1.0_amd64_ubuntu.deb ...
Unpacking netease-cloud-music (1.1.0) ...
Setting up netease-cloud-music (1.1.0) ...
Processing triggers for libc-bin (2.26-4) ...
Processing triggers for desktop-file-utils (0.23-2) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
┌─[username@laptop]─[~/Downloads]
└──╼ $sudo apt update
。。。
。。。
再次打开程序,装上最新版本就没问题了